next up previous contents index
Next: TextColor Up: Procedures and Functions Previous: Sound

TextBackground

   

Declaration:

Procedure TextBackground (CL: Byte) ;

Description:

TextBackground sets the background color to CL. CL can be one of the predefined color constants.

Errors:

None.

See also:

TextColor, HighVideo, LowVideo, NormVideo

Example
Program Example13;
uses Crt;

{ Program to demonstrate the TextBackground function. }

begin
  TextColor(White);
  WriteLn('This is written in with the default background color');
  TextBackground(Green);
  WriteLn('This is written in with a Green background');
  TextBackground(Brown);
  WriteLn('This is written in with a Brown background');
  TextBackground(Black);
  WriteLn('Back with a black background');
end.



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998