Mail Archives: djgpp/1998/04/09/19:49:16
Robert Robbins wrote:
>
> Hello,
> In <conio.h> does the function textcolor require ANSI.SYS?
> Since ANSI.SYS cannot be used under Windows 95 does
> it make sense to include this function?
Conio functions interface directly with the BIOS, so ANSI.SYS is not
required. However, do not try the following:
textcolor( BLUE );
printf( "This is blue.\n" );
stdio functions go through DOS, so your color settings will be ignored.
Use conio display functions instead.
FWIW, ANSI.SYS works perfectly well in a Win95 DOS box.
--
---------------------------------------------------------------------
| John M. Aldrich | "Deductive logic is tautological; |
| aka Fighteer I | there is no way to get a new truth |
| mailto:fighteer AT cs DOT com | out of it." |
| http://www.cs.com/fighteer | - Lazarus Long |
---------------------------------------------------------------------
- Raw text -