◄Summary► ◄Details► ◄Example► ◄Back► Argument color Integer expression representing the new background color Description The TextBackground procedure sets the background color selected for character display. The current display remains unchanged. Any subsequent text output appears with the new background color. A call to ClrScr clears the screen to the new color. The change in background color is not limited to the current window, but is for the entire display. The Crt unit defines the variable TextAttr. TextAttr holds the current background color in bits 4-6; the possible values are in the range 0..7. Crt defines the possible colors as constants that can be passed to TextBackground. TextBackground sets TextAttr to the new background color. If the color argument is out of range, TextBackground uses only the low bits and no error occurs. If the chosen background color matches the current foreground color, subsequent character output is invisible.