Mail Archives: djgpp/1997/02/25/21:45:25
-=MoZ=- wrote:
>
> I know this is possible, but as some of you may know, I don't know a
> damn thing about programming! :)
>
> Can I take an ANSI File, and bring it into a C program, and have the
> C program capabple of scrolling this file?
It's easy to make a program to scroll a text file. But to get an ANSI
file to display properly, you need to do one of two things:
- Load ANSI.SYS on your system. In this case, text sent to DOS via
printf() will pass through ANSI.SYS and will be displayed properly.
This is true of any program that works in such a way.
- Write your own parser for the ANSI codes and use the <conio> functions
to implement them. This would be a major piece of work, comparable to
writing ANSI.SYS from scratch. But it's the only way to guarantee the
portability of such a program.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| "Starting flamewars since 1993" | http://www.cs.com/fighteer |
| *** NOTICE *** This .signature is generated randomly. |
| If you don't like it, sue my computer. |
---------------------------------------------------------------------
- Raw text -