[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
screen on 256 color xterm
From: |
Dr. Johannes Zellner |
Subject: |
screen on 256 color xterm |
Date: |
Tue, 21 Mar 2006 16:04:15 -0000 |
User-agent: |
Mutt/1.5.11+cvs20060126 |
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".
Attached are (sorry for bw) the correct xterm colors (xterm.png) and
the screen colors (screen.png) with their color numbers. The colors
were generated by a very crude python script (colors.py).
Any help much appreciated.
--
Johannes
colors.py
Description: Text Data
xterm.png
Description: PNG image
screen.png
Description: PNG image
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- screen on 256 color xterm,
Dr. Johannes Zellner <=