Previous: HighVideo procedure To the Table of Content Next: TextMode procedure

- 4.8.3.10 -
Standard Units
Crt Unit
CRT Unit Procedures and Functions

TextColor procedure

Targets: MS-DOS, OS/2, Win32


CRT Unit, WinCRT Unit

Selects the foreground character color.

Declaration:
procedure TextColor(Color: Byte);
Remarks:
Color is an integer expression in the range 0..15, corresponding to one of the text color constants defined in CRT.

MS-DOS target:
TextColor sets bits 0-3 to Color. If Color is greater than 15, the blink bit (bit 7) is also set; otherwise, it is cleared.

See also:
Color Constants


Previous: HighVideo procedure To the Table of Content Next: TextMode procedure
HighVideo procedure Table of Content TextMode procedure

- 4.8.3.10 -