Date: Fri, 4 Apr 1997 11:04:57 -0700 (MST) From: Terry Lambert <terry@lambert.org> To: gurney_j@resnet.uoregon.edu Cc: freebsd-current@freebsd.org Subject: Re: modify termcap to support both A[FB] and S[fb]... Message-ID: <199704041804.LAA19566@phaeton.artisoft.com> In-Reply-To: <19970404004714.27849@hydrogen.nike.efn.org> from "John-Mark Gurney" at Apr 4, 97 00:47:14 am
next in thread | previous in thread | raw e-mail | index | archive | help
> does anybody object to me modifing termcap to support both ways of > declaring color codes? > > it seems that screen wants to use A[FB] only... and that cons/xterm > want to use S[fb]... > > if no one objects I'll make the mods so that they understand each > other... this will probably also fix a problem with mutt not knowing > that colors exist when running under screen, and consXX... These entries are for the ISO color sequences, which take a manifest color constant, of which only 0-7 are defined, right? The problem with PC hardware is that there are 16 foreground colors and either 8 background colors and the ability to blink, or 16 background colors and no ability to blink. One traditional (SCO) way of handling this was to use the "bold" attribute to select the additional 8 foreground colors (which are HLS scaled up from the other 8 colors that are shared with the background) and the "blink" attribute to select the 8 background colors "blink bit". Whether the "blink" attribute causes "bold" background colors or causes the foreground characters to blink, depends on the settings in CGA register (either the real thing, or the emulated thing) #2, bit 5. SCO defined thair own sequence (and termcap entry) for dealing with this, too. Finally, SCO wimped out, and provided a "select background", "select foreground" and a "select background and foreground" sequence, which did not match the ISO definitions, and was technically in collision with a number of ANSI definitions. But these SCO sequences (except the "blink" vs. "bold" control) are not necessary to get at all the color combinations, foreground and background. Ah, the vagries of PC hardware... Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704041804.LAA19566>