Sets the lower 4 bits of the color attribute which is used for the foreground of displayed text.
Foreground and background color constants:
| clBlack | 0 | |
| clBlue | 1 | |
| clGreen | 2 | |
| clCyan | 3 | |
| clRed | 4 | |
| clMagenta | 5 | |
| clBrown | 6 | |
| clGray | 7 | |
| clLightGray | clGray | |
| clGrey | clGray | |
| clLightGrey | clGray |
Foreground color constants, background intensity or blink:
| clDarkGray | 8 | |
| clDarkGrey | clDarkGray | |
| clLightBlue | 9 | |
| clLightGreen | 10 | |
| clLightCyan | 11 | |
| clLightRed | 12 | |
| clLightMagenta | 13 | |
| clYellow | 14 | |
| clWhite | 15 |
Examples:
TextColor al ; set the text color to AL
TextColor clRed ; set the text color to White
TextColor [LAST] ; set the text color to value stored in [LAST]
See also: TextBackground and TextAttr