screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 256 colors


From: Nikolai Weibull
Subject: Re: 256 colors
Date: 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:

Cool!  :-)

| $ 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.
|       acsc: 
'++\,\,--..00II``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~', 
'++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~'.
|       kbs: NULL, '^H'.
|       kcbt: NULL, '\E[Z'.
|       kmous: NULL, '\E[M'.
|       rs2: '\Ec', '\Ec\E[?1000l\E[?25h'.
|       setab: '\E[48;5;%p1%dm', 
'\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m'.
|       setaf: '\E[38;5;%p1%dm', 
'\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m'.
|       sgr: NULL, 
'\E[0%?%p6%t;1%;%?%p1%t;3%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;'.
|       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.

 nikolai




reply via email to

[Prev in Thread] Current Thread [Next in Thread]