screen-users
[Top][All Lists]
Advanced

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

Re: screen on 256 color xterm


From: Nikolai Weibull
Subject: Re: screen on 256 color xterm
Date: Sun, 26 Mar 2006 23:46:52 +0200

On 3/26/06, Dr. Johannes Zellner <address@hidden> wrote:
> Hello,
>
> how do I get 256 colors in screen running in an 256 enabled xterm?
> I tried to create a terminfo entry like this:
>
> screen-256color|screen on xterm with 256 colors,
>         ccc,
>         colors#256,
>         pairs#32767,
>         
> initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
>         setab=\E[48;5;%p1%dm,
>         setaf=\E[38;5;%p1%dm,
>         setb=\E[48;5;%p1%dm,
>         setf=\E[38;5;%p1%dm,
>         use=screen-bce,
>
> (stolen from the xterm terminfo).
>
> But the colors are not correct. Especially the colors of the
> 6 x 6 x 6 color cube (colors 16 - 231) seem to be somehow "rounded"
> so that the color shades are lost.
>
> To illustrate this a bit I put the correct xterm colors at
>     http://www.zellner.org/screen/xterm.png
> and the wrong screen colors at
>     http://www.zellner.org/screen/screen.png
> The two images also show the corresponding color number and were
> generated by the python script http://www.zellner.org/screen/colors.py
>
> Any help much appreciated.

Here's the terminfo definition I've been trying to get into the
distribution without much success.  Are you certain that the right
terminfo definition is used by screen when it starts?  Are you sure no
stupid termcap is overiding it somewhere?  This has been discussed on
the mailing list previously, so doing a search might turn something
up.  I don't exactly remember the details, but it's way too difficult
to get it working.  I was meaning to write something down, but I never
got round to it.  Also, make sure to unset TERMCAP once inside screen,
as perhaps your tput is using it instead of just ignoring it like any
good post-1980's-program should.

Have you compiled screen with --enable-colors256?

  nikolai

screen-256color|VT 100/ANSI X3.64 virtual terminal,
        am, km, mir, msgr, xenl,
        colors#256, cols#80, it#8, lines#24, pairs#32767,
        acsc=++\,\,--..00II``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
        clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M,
        csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
        cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
        cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
        dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
        flash=\Eg, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
        il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kcub1=\EOD,
        kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~,
        kend=\E[4~, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
        kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[15~,
        kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
        khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, nel=\EE,
        op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
        rmcup=\E[?1049l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[23m,
        rmul=\E[24m, rs2=\Ec, sc=\E7, setab=\E[48;5;%p1%dm,
        setaf=\E[38;5;%p1%dm, sgr0=\E[m, smacs=^N,
        smcup=\E[?1049h, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[3m,
        smul=\E[4m, tbc=\E[3g,




reply via email to

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