cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/04/06:43:31

Date: Mon, 4 Jan 1999 13:42:23 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Kieran Farrell <kezman AT bigfoot DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Changeing Colour Within A String
In-Reply-To: <369090a9.6137455@ade-news.tpg.com.au>
Message-ID: <Pine.SUN.3.91.990104133855.26097G-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Mon, 4 Jan 1999, Kieran Farrell wrote:

> I was wondering if someone could give me some ideas on how to change
> text colour within a string.

This is only possible if you install the ANSI.SYS device driver and use 
escape sequences to change colors.  The device driver interprets these 
escape sequences; the usual DOS display doesn't support them.

The ``normal'' way to do this in DOS is to change colors using textcolor 
and textbackground functions, and print the text after changing color 
with cprintf or cputs.  But this doesn't support embedded color commands 
(unless you write some code to do that for you).

- Raw text -


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