Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!scooter!neoucom!wtm From: wtm@neoucom.UUCP (Bill Mayhew) Newsgroups: comp.sys.att Subject: Re: 386 console & color Summary: embed ansi escape code in prompt string Message-ID: <1619@neoucom.UUCP> Date: 9 May 89 02:13:33 GMT References: <8399@chinet.chi.il.us> Sender: wfd@neoucom.UUCP Distribution: na Organization: Northeastern Ohio Universities College of Medicine Lines: 42 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@impulse.UUCP[0m