◄Summary► ◄Details► ◄Example► ◄Back► Argument color Integer expression representing the new foreground color Description The TextColor procedure sets the foreground color for character display. The current display remains unchanged. Any subsequent text output is in the new foreground color. This procedure can also set the bit for blinking text display. The Crt unit defines the variable TextAttr. TextAttr holds the current foreground color in bits 0-3; the possible values are in the range 0..15. Crt defines the possible colors as constants that can be passed to TextColor. TextColor sets TextAttr to the new foreground color. Bit 7 enables or disables blinking. Crt defines the constant Blink as the value 128. To turn blinking on, add Blink to the color being passed to TextColor: TextColor( color + Blink ); In addition, any value for color greater than 15 turns blinking on. If the color argument is out of range, TextColor uses only the low bits and no error occurs. If the chosen text color matches the current background color, subsequent character output is invisible.