Skip to content

WINDOW COLOR

Set Thoroughbred Basic Window Color

This directive sets the current terminal color to a specified attribute state.

WINDOW COLOR ( color-num )

color-num is any integer in the range of 0 to 255.

This directive is generally available starting with release level 8.1.B2.

The following tables show the background and foreground color codes. The color number is built by adding the chosen background color with an appropriate foreground color.

Background Color Number

dec hex color
000 $00$ black
016 $10$ light blue
032 $20$ light green
048 $30$ light cyan
064 $40$ light red
080 $50$ light magenta
096 $60$ yellow
112 $70$ light gray
128 $80$ gray
144 $90$ blue
160 $A0$ green
176 $B0$ cyan
192 $C0$ red
208 $D0$ magenta
224 $E0$ brown
240 $F0$ white

Foreground Color Number

dec hex color
00 $00$ black
01 $01$ light blue
02 $02$ light green
03 $03$ light cyan
04 $04$ light red
05 $05$ light magenta
06 $06$ yellow
07 $07$ light gray
08 $08$ gray
09 $09$ blue
10 $0A$ green
11 $0B$ cyan
12 $0C$ red
13 $0D$ magenta
14 $0E$ brown
15 $0F$ white

If the color combination is available to Thoroughbred Basic Windows, then all screen changes use this color combination.

The ability to set the current screen color using this directive may not be available on all terminals.

WINDOW COLOR (144+12)

sets the current terminal color to a red on blue combination.

WINDOW COLOR (201)

sets the current terminal color to a blue on red combination.

WINDOW COLOR ($0F$)

sets the current terminal color to the default color combination, white on black.

WINDOW ATTR directive

From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF