386 console & color
Bill Mayhew
wtm at neoucom.UUCP
Tue May 9 12:13:33 AEST 1989
I believe that ansi escape code processing is built into the
console driver. Try sending: \033[44;37;1m
That should give you bright white on a blue background. Send the
string, then do a clear to paint the attribute over the whole
screen. I am reasonably sure this works on the console driver on
the 6386. I tried it on the Xenix system sitting next to me and it
works. Of course, the \033 is the meta representation for the
escape character.
For fun, here are the ansi set graphic rendition codes. The
generic form of the command is: \033[nn;mm;...;ppm
You may include as many modifiers as you'd like. A lower case m
terminates the escape sequence.
0 All attributes off
1 Bold on
3 Swap foreground and background
4 Underline on
5 Blink on
7 Reverse video on
8 Concealed on
30 Black foreground
31 Red foreground
32 Green foreground
33 Yellow foreground
34 Blue foreground
35 Magenta foreground
36 Cyan foreground
37 White foreground
40 Black background
41 Red background
42 Green background
43 Yellow background
44 Blue background
45 Magenta background
46 Cyan background
47 White background
Bill
[44;37;1mwtm at impulse.UUCP[0m
More information about the Comp.sys.att
mailing list