Xref: utzoo comp.sys.att:5677 unix-pc.general:2350 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!rutgers!att!cbnews!mvadh From: mvadh@cbnews.ATT.COM (andrew.d.hay) Newsgroups: comp.sys.att,unix-pc.general Subject: Re: 3B1 software / COBOL termcap Message-ID: <4370@cbnews.ATT.COM> Date: 27 Feb 89 13:09:03 GMT References: <274@denwa.uucp> Reply-To: mvadh@cbnews.ATT.COM (andrew.d.hay) Organization: AT&T Bell Laboratories Lines: 32 In article <274@denwa.uucp> jimmy@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 +------------------------------------------------------+