delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/27/00:57:55

Date: Mon, 27 Nov 2000 05:33:06 GMT
Message-ID: <Tc23e93195021069996@mailsweeper.wilco-int.com>
From: Prashant TR <rprash AT wilco-int DOT com>
To: Julian Hsiao <madoka AT novastar DOT com>
CC: djgpp AT delorie DOT com
Subject: Re: Buffering text...
Reply-To: djgpp AT delorie DOT com

| > While browsing through conio.h for other helpful functions, I thought I'd
| > 'funk' up my debug output by using colours.  Libc-202 (is there a newer
| > version??) says textcolor() would do just the job, yet when I try to 
| > colour
| > some text with:
| >
| > ...
| >        default:
| >          textcolor(LIGHTRED);
| >          printf("\n\nERROR:  UNKNOWN OUTPUT TYPE\n");
| >          exit(1);
| >          break;
| > ...
| >
| > Nothing happens.  Even setting the normal text to an arbitrary colour
| > doesn't work.  Not important, but hey, it would make a dull black box with 
| > a dull grey text seem more interesting:-)
| 
| You need to add a line in your config.sys file:
| 
| DEVICEHIGH=C:\WINDOWS\COMMAND\ANSI.SYS
| 
| or replace 'DEVICEHIGH' with 'DEVICE'; my ANSI.SYS file is in the 
| C:\WINDOWS\COMMAND\ directory, maybe it's in a different different 
| directory in Win98se.

There's no need to have ANSI.SYS to get a color output. Just replace
the "printf" with "cprintf" and see the difference!

-- 
Prashant TR <tr AT midpec DOT com>
Web: http://www.midpec.com/

--------------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. 
Any review, retransmission, dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. 
If you received this in error, please contact the sender and delete the materialfrom any computer.
--------------------------------------------------------------------------------

- Raw text -


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