3B1 software / COBOL termcap

andrew.d.hay mvadh at cbnews.ATT.COM
Mon Feb 27 23:09:03 AEST 1989


In article <274 at denwa.uucp> jimmy at denwa.uucp (Jim Gottlieb) writes:
[]
"   Specifically, I had to add
"
"	:NM=\E[0m:NB=\E[0m\E[1m:NR=\E[0m\E[7m:NS=\E[0m\E[1m\E[7m:\
"	:AL=\E[0m\E[2m:AB=\E[0m\E[1m\E[2m:AR=\E[0m\E[2m\E[7m:
"	:AS=\E[0m\E[1m\E[2m\E[7m:RS=\E[0m:OV=0:CF=\E[=1C:\
"	:CN=\E[=0C:
"
"	(I know, some of the escape sequences are rather long, but I
"	couldn't figure out from the window(7) man page how to do
"	multiple attributes in one escape sequence.)

standard ansi x3.64 syntax is \E[{attrib}[,{attrib}][,{attrib}]{cmd}
it is surprising they neglected to mention it...

for example: \E[0;2;7m

so, your entries become --
:NM=\E[0m:NB=\E[0;1m:NR=\E[0;7m:NS=\E[0;1;7m:\
:AL=\E[0;2m:AB=\E[0;1;2m:AR=\E[0;2;7m:
:AS=\E[0;1;2;7m:RS=\E[0m:OV=0:CF=\E[=1C:\
:CN=\E[=0C:

1 is usually bold and 2 is usually dim.
using both bold and dim in one sequence is odd, to say the least --
one should cancel the other.
-- 
Andrew Hay		+------------------------------------------------------+
Apprentice Polymath	| Yes, the wages of sin ARE death, but after they take |
AT&T-BL Ward Hill MA	| taxes out, it's kind of a tired feeling really       |
mvuxq.att.com!adh	+------------------------------------------------------+



More information about the Unix-pc.general mailing list