TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: TONY CAPPELLINI 76370,2104 (X)
from: Zack Sessions 76407,1524
date: 1990-06-12 16:40:57
subject: #4283-C and Screen I/O

#: 4306 S3/Languages
    12-Jun-90  16:40:57
Sb: #4283-C and Screen I/O
Fm: Zack Sessions 76407,1524
To: TONY CAPPELLINI 76370,2104 (X)

Sure you can do that, but only on a graphics window which supports enough colors.
Here is a code segment:

 DWSet(path,8,0,0,40,24,0,1,2);
 Select(path);
 Palette(path,3,8);
 Palette(path,4,36);
 Palette(path,5,18);
 Palette(path,6,54);
 FColor(path,3);
 puts("This line is BLUE");
 FColor(path,4);
 puts("This line is RED");
 FColor(path,5);
 puts("This line is GREEN");
 FColor(path,6);
 puts("This line is YELLOW");
 .
 .
 .

The trick is to use the FColor() function to change the current value of
the forground color register.

Zack

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.