delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/09/19:49:16

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ANSI.SYS
Date: Thu, 09 Apr 1998 18:25:24 -0400
Organization: Two pounds of chaos and a pinch of salt.
Lines: 25
Message-ID: <352D4AD4.5AC5@cs.com>
References: <352D387E DOT 712A3DE1 AT sunlink DOT net>
NNTP-Posting-Host: ppp228.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019