qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
TextBackground Procedure
  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.