Bits
|
Usage
|
0-3
|
foreground color (0 to 15)
|
4-6
|
background color (0 to 7)
|
7
|
blink-enable bit
|
Value
|
Description
|
0
|
Black
|
1
|
Blue
|
2
|
Green
|
3
|
Cyan
|
4
|
Red
|
5
|
Magenta
|
6
|
Brown
|
7
|
Light Gray
|
8
|
Dark Gray
|
9
|
Light Blue
|
10
|
Light Green
|
11
|
Light Cyan
|
12
|
Light Red
|
13
|
Light Magenta
|
14
|
Yellow
|
15
|
White
|
sub main()
txinit()
txsetattr(0x1F) // set white text on blue background
printl("This prints in color")
txterm()
end sub
|