From: MERC::"uunet!CRVAX.SRI.COM!RELAY-INFO-VAX" 17-SEP-1992 03:06:56.70 To: info-vax@kl.sri.com CC: Subj: Re: HELP! Whither Third Color Bolding on Motif DECterms? In article <16SEP199215244221@b56vxg.kodak.com>, ekdug@b56vxg.kodak.com (James Cox) writes: > Some of the features we have used heavily are the bold and negative image > (reverse video) capabilities of the VT-340's (the Select Graphic Rendition or > SGR control functions) eg, 1m WARNING 0m. It's kind of important > to make sure that the things that can cause 100 foot high flames stand out in > a paragraph of text (BTW, said flames are at the top of a 350 flare stack and > have been know to significantly reduce the moth population of the surrounding > area ;-) ). > > Nothing I've been able to do with a DECterm under Motif has given me the > different color "bold" that the VT-340 had. What we do get is a same-color > thickening of the characters. That's really not acceptable since it's a > lot more subtle than the different color bolding, and it also makes the text > harder to read. As it turns out the DECterm window supports the ANSI text mode color sequences which are often used on PC terminal emulators (but which are not supported on the VT340). All you need to do is to write a m to select the color (that is, it's very similar to what you are doing now, just using different values for the SGR parameters). The values for the p(n) are: 30 - Black foreground 40 - Black background 31 - Red foreground 41 - Red background 32 - Green foreground 42 - Green background 33 - Yellow foreground 43 - Yellow background 34 - Blue foreground 44 - Blue background 35 - Magenta foreground 45 - Magenta background 36 - Cyan foreground 46 - Cyan background 37 - White foreground 47 - White background As with other uses of the SGR sequence, values can be strung together; therefore, to have yellow text on a blue background, you'd send a CSI 33 ; 44 m (CSI = either ESC [ in 7-bit or 0x9b in 8-bit mode). I'm sure this is documented somewhere, but I've never found it (but then again, I can't really say I've looked very hard ... I just noticed that it worked). I know it's been there since at least VMS V5.3 (the earliest version of DECwindows I've tried it on). Good luck - Bruce C. Wright