[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 256 colors
Re: 256 colors
Wed, 25 Apr 2007 15:21:38 +0200
On 4/24/07, Alain Bench <address@hidden> wrote:
On Monday, April 23, 2007 at 21:56:59 +0200, Nikolai Weibull wrote:
> On 4/23/07, Alain Bench <address@hidden> wrote:
>> An enhanced version of your [screen-256color] entry is included in
>> the official terminfo database
> "Enhanced"? ;-)
Slightly richer: Optimized color commands, sgr, mouse support,
bindable <BackTab>, and some such.
OK. I was only kidding. I didn't think my definition was the end of the line.
By the way, the setaf/setab alternatives that are used now look very
complex. As I understood it from my twenty-second survey it's about
supporting the old ways of setting colors as well. Is that right?
The -.NW is yours:
| $ infocmp -x screen-256color.NW screen-256color
| comparing screen-256color.NW to screen-256color.
| comparing booleans.
| OTbs: F:T.
| OTpt: F:T.
| AX: F:T.
| G0: F:T.
| comparing numbers.
| ncv: NULL, 3.
| comparing strings.
| kbs: NULL, '^H'.
| kcbt: NULL, '\E[Z'.
| kmous: NULL, '\E[M'.
| rs2: '\Ec', '\Ec\E[?1000l\E[?25h'.
| setab: '\E[48;5;%p1%dm',
| setaf: '\E[38;5;%p1%dm',
| sgr: NULL,
| sgr0: '\E[m', '\E[m\017'.
| E0: NULL, '\E(B'.
| S0: NULL, '\E(%p1%c'.
Of course presence of capabilities like <BackTab> or mouse may seem
strange, given Screen itself doesn't manage them. However most if not
all possibly used 256 colors terminals support them. So it makes sense
to inform apps that <BackTab> key and mouse do work.
Yeah, that sounds reasonable. Not that I use the mouse in the
terminal, but still.
Re: 256 colors, cga2000, 2007/04/21