Previous: 4.8.2.19. TextBackground procedure To the Table of Contents Next: 4.8.2.21. TextMode procedure
4.8.2.19. TextBackground procedure Table of Contents 4.8.2.21. TextMode procedure

- 4.8.2.20. -
Table of Contents
4. Standard Units
4.8. CRT - Keyboard and monitor control routines
4.8.2. CRT Unit Procedures and Functions
4.8.2.20. TextColor procedure


4.8.2.20. 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: 4.8.2.19. TextBackground procedure To the Table of Contents Next: 4.8.2.21. TextMode procedure
4.8.2.19. TextBackground procedure Table of Contents 4.8.2.21. TextMode procedure

- 4.8.2.20. -