Mail Archives: djgpp/2000/12/07/04:52:57
Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comremovebullcr_p> wrote:
> If you want to use -ansi as a default switch, you might want to ANSIfy
> (is that a word?) the rest of the system, including installing support
> for ANSI escape characters (ansi.sys) so you can clear the screen with
> fputs("\033[2J", stderr);
It's probably a good idea to point out that ANSI in both cases refers to
the same standards body, but that ANSI escape characters and ANSI C are
two very different and unrelated standards.
ANSI C does not define the behavior of \033[2J. Also, ANSI escape codes
work on non-C systems. The -ansi option in DJGPP refers to only the C
standard, not the escape codes.
If you want to write ANSI C, you don't want to clear the screen anyway,
because ANSI C doesn't have the concept of a screen. If you can assume
you have a screen and you want to do things like clear it, jump around
in it, and use colors, you *should* be using extensions like <conio.h>,
so -ansi doesn't make sense in that case.
--
naisbodo AT enteract DOT com
http://www.naisbodo.com/
- Raw text -