Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!metro!sequoia!ultima!kralizec.zeta.org.au!kralizec.zeta.org.au!not-for-mail From: bde@kralizec.zeta.org.au (Bruce Evans) Newsgroups: comp.os.386bsd.bugs Subject: Re: Problem with pk 0.2.4 with a "mono VGA" monitor Date: 26 Jul 1993 01:09:17 +1000 Organization: Kralizec Dialup Unix Sydney: +61-2-837-1183 V.32bis Lines: 32 Message-ID: <22u7mtINNjtn@kralizec.zeta.org.au> References: <CAIIK8.n4v@sugar.NeoSoft.COM> <1993Jul24.024908.27448@craycos.com> NNTP-Posting-Host: kralizec.zeta.org.au Keywords: mono VGA termcap In <1993Jul24.024908.27448@craycos.com> scott@craycos.com (Scott Bolte) writes: > I spent an embarrassing long time working on the white on white > standout mode problem. ... > The stock termcap entry ended up setting "vp->so_at" to 0x17. > I did not dig further to see how 0x17 would be used. Or what it > means. (Beyond white on white of course :-) But I did find a > more reasonable setting (0x10) given a monochrome monitor. > Working backwards I came up with the sequence found in the > termcap entry below. Oops! The stock termcap entry shouldn't have colors. The one in the 0.2.4 patchkit has my local hack to give blue on white for standout: :so=\E[7;1r\E[7m: Here "\E[7;1r" is a pccons escape sequence to set the `standout' color to white on blue (0x17) on color screens. On mono screens it should do nothing; it works right for pccons on mono displays. It's not clear what it should do on gray-scale displays. "\E7m" is the ANSI escape sequence to give reverse video. >pc3mono|IBM PC 386BSD Console with monochrome monitor:\ > :so=\E[0;1r\E[1m:tc=pc3: Here "\E[0;1r" sets the `standout' color to the usual default for mono screens. "\E[1m" is the ANSI escape sequence to give bold. It works the same as the sequence for reverse video because pccons treates the parameter before "m" as a flag (zero or nonzero). -- Bruce Evans bde@kralizec.zeta.org.au