home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <ansi.h>
-
- main(int argc, char **argv)
- {
- FILE *fp;
- char ch;
- int test = 0;
- fast_video = 1;
-
- if ((fp = fopen(argv[1], "r")) != NULL)
- {
- while (!feof(fp))
- {
- ch = fgetc(fp);
- if (ch == 0x1b || test > 0)
- {
- test = ansi_cmd(ch);
- }
- else
- write_char(ch, attr.color);
- }
- }
- else
- puts("Can't find the file");
- }
-