Created
June 29, 2017 02:52
-
-
Save michael-lazar/4e1beb7be279c72f59662127b5a234e6 to your computer and use it in GitHub Desktop.
Terminfo colors as reported by python curses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TERM COLORS COLOR_PAIRS | |
386at 8 64 | |
Apple_Terminal 8 64 | |
Eterm 8 64 | |
Eterm-256color 256 32767 | |
Eterm-88color 88 7744 | |
Eterm-color 8 64 | |
aixterm 8 64 | |
aixterm-16color 16 256 | |
amiga-vnc 16 256 | |
ansi 8 64 | |
ansi-color-2-emx 8 64 | |
ansi-color-3-emx 8 64 | |
ansi-emx 8 64 | |
ansi.sys 8 64 | |
ansi.sys-old 8 64 | |
ansi.sysk 8 64 | |
ansi80x25 8 64 | |
ansi80x25-raw 8 64 | |
ansi80x30 8 64 | |
ansi80x43 8 64 | |
ansi80x50 8 64 | |
ansi80x60 8 64 | |
ansil 8 64 | |
ansis 8 64 | |
ansisysk 8 64 | |
ansiw 8 64 | |
arm100 8 64 | |
arm100-am 8 64 | |
arm100-w 8 64 | |
arm100-wam 8 64 | |
at386 8 64 | |
aterm 8 64 | |
att6386 8 64 | |
beterm 8 64 | |
bsdos-pc 8 64 | |
bsdos-pc-nobold 8 64 | |
bsdos-ppc 8 64 | |
color_xterm 8 64 | |
cons25 8 64 | |
cons25-iso8859 8 64 | |
cons25-koi8-r 8 64 | |
cons25l1 8 64 | |
cons25r 8 64 | |
cons25w 8 64 | |
cons30 8 64 | |
cons43 8 64 | |
cons50 8 64 | |
cons50-iso8859 8 64 | |
cons50-koi8r 8 64 | |
cons50l1 8 64 | |
cons50r 8 64 | |
cons60 8 64 | |
cons60-iso 8 64 | |
cons60-koi8r 8 64 | |
cons60l1 8 64 | |
cons60r 8 64 | |
crt 8 64 | |
crt-vt220 8 64 | |
ctrm 8 63 | |
cx 8 64 | |
cx100 8 64 | |
cygwin 8 64 | |
cygwinB19 8 64 | |
cygwinDBG 8 64 | |
d220 8 64 | |
d220-7b 8 64 | |
d220-dg 8 64 | |
d230 8 64 | |
d230-dg 8 64 | |
d230c 8 64 | |
d230c-dg 8 64 | |
d430-dg 16 256 | |
d430-dg-ccc 52 26 | |
d430-unix 16 256 | |
d430-unix-25 16 256 | |
d430-unix-25-ccc 52 26 | |
d430-unix-ccc 52 26 | |
d430-unix-s 16 256 | |
d430-unix-s-ccc 52 26 | |
d430-unix-sr 16 256 | |
d430-unix-sr-ccc 52 26 | |
d430-unix-w 16 256 | |
d430-unix-w-ccc 52 26 | |
d430c-dg 16 256 | |
d430c-dg-ccc 52 26 | |
d430c-unix 16 256 | |
d430c-unix-25 16 256 | |
d430c-unix-25-ccc 52 26 | |
d430c-unix-ccc 52 26 | |
d430c-unix-s 16 256 | |
d430c-unix-s-ccc 52 26 | |
d430c-unix-sr 16 256 | |
d430c-unix-sr-ccc 52 26 | |
d430c-unix-w 16 256 | |
d430c-unix-w-ccc 52 26 | |
d470 16 256 | |
d470-7b 16 256 | |
d470-dg 16 256 | |
d470c 16 256 | |
d470c-7b 16 256 | |
d470c-dg 16 256 | |
darwin 8 64 | |
darwin-100x37 8 64 | |
darwin-112x37 8 64 | |
darwin-128x40 8 64 | |
darwin-128x48 8 64 | |
darwin-144x48 8 64 | |
darwin-160x64 8 64 | |
darwin-200x64 8 64 | |
darwin-200x75 8 64 | |
darwin-256x96 8 64 | |
darwin-80x25 8 64 | |
darwin-80x30 8 64 | |
darwin-90x30 8 64 | |
darwin-b 8 64 | |
darwin-f 8 64 | |
darwin-f2 8 64 | |
decansi 8 64 | |
dg+ccc 52 26 | |
dg+color 16 256 | |
dg+color8 8 64 | |
dg+fixed 16 256 | |
dgmode+color 16 256 | |
dgmode+color8 8 64 | |
dgunix+ccc 52 26 | |
dgunix+fixed 16 256 | |
djgpp 8 64 | |
djgpp204 8 64 | |
dtterm 8 64 | |
ecma+color 8 64 | |
emots 8 63 | |
emu 15 64 | |
emx-base 8 64 | |
gnome 8 64 | |
gnome-2007 8 64 | |
gnome-2008 8 64 | |
gnome-256color 256 32767 | |
gnome-fc5 8 64 | |
gnome-rh62 8 64 | |
gnome-rh72 8 64 | |
gnome-rh80 8 64 | |
gnome-rh90 8 64 | |
gs6300 8 63 | |
hft 8 64 | |
hft-c 8 64 | |
hft-c-old 8 64 | |
hft-old 8 64 | |
hp+color 16 7 | |
hp2397 16 7 | |
hp2397a 16 7 | |
hpterm-color 64 8 | |
hurd 8 64 | |
i3164 8 64 | |
ibm+16color 16 256 | |
ibm+color 8 64 | |
ibm3164 8 64 | |
ibm5081 8 64 | |
ibm5154 8 64 | |
ibm6154 8 64 | |
ibm8503 8 64 | |
ibm8507 8 64 | |
ibm8512 8 64 | |
ibm8513 8 64 | |
ibm8514 8 64 | |
ibm8604 8 64 | |
ibmpc3 8 64 | |
ibmpc3r 8 64 | |
interix 8 64 | |
interix-nti 8 64 | |
iris-color 8 64 | |
jaixterm 8 64 | |
jfbterm 8 64 | |
klone+color 8 64 | |
kon 8 64 | |
kon2 8 64 | |
konsole 8 64 | |
konsole-16color 16 256 | |
konsole-256color 256 32767 | |
konsole-base 8 64 | |
konsole-linux 8 64 | |
konsole-solaris 8 64 | |
konsole-vt100 8 64 | |
konsole-vt420pc 8 64 | |
konsole-xf3x 8 64 | |
konsole-xf4x 8 64 | |
kterm 8 64 | |
kterm-co 8 64 | |
kterm-color 8 64 | |
kvt 8 64 | |
linux 8 64 | |
linux-basic 8 64 | |
linux-c 8 64 | |
linux-c-nc 8 64 | |
linux-koi8 8 64 | |
linux-koi8r 8 64 | |
linux-lat 8 64 | |
linux-nic 8 64 | |
linux-vt 8 64 | |
linux2.6.26 8 64 | |
mach-color 8 64 | |
mgt 8 64 | |
mgterm 8 64 | |
minitel1 8 8 | |
minitel1b 8 8 | |
mlterm 8 64 | |
mrxvt 8 64 | |
ms-vt-utf8 8 64 | |
ms-vt100+ 8 64 | |
ms-vt100-color 8 64 | |
mvterm 8 64 | |
nansi.sys 8 64 | |
nansi.sysk 8 64 | |
nansisys 8 64 | |
nansisysk 8 64 | |
ncr260intan 8 64 | |
ncr260intpp 8 64 | |
ncr260intwan 8 64 | |
ncr260intwpp 8 64 | |
ncr260wy350pp 16 16 | |
ncr260wy350wpp 16 16 | |
ncsa 8 64 | |
ncsa-ns 8 64 | |
ncsa-vt220 8 64 | |
nsterm 8 64 | |
nsterm+c 16 256 | |
nsterm+c41 8 64 | |
nsterm-16color 16 256 | |
nsterm-7 8 64 | |
nsterm-7-c 16 256 | |
nsterm-7-c-s 16 256 | |
nsterm-7-s 8 64 | |
nsterm-acs 8 64 | |
nsterm-acs-c 16 256 | |
nsterm-acs-c-s 16 256 | |
nsterm-acs-s 8 64 | |
nsterm-c 16 256 | |
nsterm-c-7 16 256 | |
nsterm-c-acs 16 256 | |
nsterm-c-s 16 256 | |
nsterm-c-s-7 16 256 | |
nsterm-c-s-acs 16 256 | |
nsterm-s 8 64 | |
nsterm-s-7 8 64 | |
nsterm-s-acs 8 64 | |
ntconsole 8 64 | |
ntconsole-100 8 64 | |
ntconsole-100-nti 8 64 | |
ntconsole-25 8 64 | |
ntconsole-25-nti 8 64 | |
ntconsole-25-w 8 64 | |
ntconsole-25-w-vt 8 64 | |
ntconsole-35 8 64 | |
ntconsole-35-nti 8 64 | |
ntconsole-35-w 8 64 | |
ntconsole-50 8 64 | |
ntconsole-50-nti 8 64 | |
ntconsole-50-w 8 64 | |
ntconsole-60 8 64 | |
ntconsole-60-nti 8 64 | |
ntconsole-60-w 8 64 | |
ntconsole-w 8 64 | |
ntconsole-w-vt 8 64 | |
nxterm 8 64 | |
opennt 8 64 | |
opennt-100 8 64 | |
opennt-100-nti 8 64 | |
opennt-25 8 64 | |
opennt-25-nti 8 64 | |
opennt-25-w 8 64 | |
opennt-25-w-vt 8 64 | |
opennt-35 8 64 | |
opennt-35-nti 8 64 | |
opennt-35-w 8 64 | |
opennt-50 8 64 | |
opennt-50-nti 8 64 | |
opennt-50-w 8 64 | |
opennt-60 8 64 | |
opennt-60-nti 8 64 | |
opennt-60-w 8 64 | |
opennt-nti 8 64 | |
opennt-w 8 64 | |
opennt-w-vt 8 64 | |
pc3 8 64 | |
pc3-bold 8 64 | |
pc3r 8 64 | |
pcansi 8 64 | |
pcansi-25 8 64 | |
pcansi-33 8 64 | |
pcansi-43 8 64 | |
pcansi25 8 64 | |
pcansi33 8 64 | |
pcansi43 8 64 | |
pcvt25-color 8 64 | |
putty 8 64 | |
putty-256color 256 32767 | |
putty-vt100 8 64 | |
qansi 8 64 | |
qansi-g 8 64 | |
qansi-m 8 64 | |
qansi-t 8 64 | |
qansi-w 8 64 | |
qnx 8 8 | |
qnx4 8 8 | |
qnxm 8 8 | |
qnxt 8 8 | |
qnxt2 8 8 | |
qnxt4 8 8 | |
qnxw 8 8 | |
rcons-color 8 64 | |
rxvt 8 64 | |
rxvt-16color 16 256 | |
rxvt-256color 256 32767 | |
rxvt-88color 88 7744 | |
rxvt-color 8 64 | |
rxvt-cygwin 8 64 | |
rxvt-cygwin-native 8 64 | |
rxvt-xpm 8 64 | |
scoansi 8 64 | |
scoansi-new 8 64 | |
scoansi-old 8 64 | |
screen 8 64 | |
screen-16color 16 256 | |
screen-16color-bce 16 256 | |
screen-16color-bce-s 16 256 | |
screen-16color-s 16 256 | |
screen-256color 256 32767 | |
screen-256color-bce 256 32767 | |
screen-256color-bce-s 256 32767 | |
screen-256color-s 256 32767 | |
screen-bce 8 64 | |
screen-s 8 64 | |
screen-w 8 64 | |
screen.linux 8 64 | |
screen.mlterm 8 64 | |
screen.rxvt 8 64 | |
screen.teraterm 8 64 | |
screen.xterm-new 8 64 | |
screen.xterm-xfree86 8 64 | |
sun-color 8 64 | |
tek4205 8 63 | |
teraterm 8 64 | |
teraterm2.3 8 64 | |
teraterm4.59 8 64 | |
ti928 8 64 | |
ti928-8 8 64 | |
ti_ansi 8 64 | |
uwin 8 64 | |
vt-utf8 8 64 | |
vt100+ 8 64 | |
vtnt 8 64 | |
vv100 8 64 | |
wsvt25 8 64 | |
wsvt25m 8 64 | |
wy350 8 8 | |
wy350-vb 8 8 | |
wy350-w 8 8 | |
wy350-wvb 8 8 | |
wy370 64 64 | |
wy370-101k 64 64 | |
wy370-105k 64 64 | |
wy370-EPC 64 64 | |
wy370-nk 64 64 | |
wy370-rv 64 64 | |
wy370-vb 64 64 | |
wy370-w 64 64 | |
wy370-wvb 64 64 | |
wyse350 8 8 | |
wyse350-vb 8 8 | |
wyse350-w 8 8 | |
wyse350-wvb 8 8 | |
wyse370 64 64 | |
xfce 8 64 | |
xiterm 8 64 | |
xnuppc 8 64 | |
xnuppc+c 8 64 | |
xnuppc-100x37 8 64 | |
xnuppc-112x37 8 64 | |
xnuppc-128x40 8 64 | |
xnuppc-128x48 8 64 | |
xnuppc-144x48 8 64 | |
xnuppc-160x64 8 64 | |
xnuppc-200x64 8 64 | |
xnuppc-200x75 8 64 | |
xnuppc-256x96 8 64 | |
xnuppc-80x25 8 64 | |
xnuppc-80x30 8 64 | |
xnuppc-90x30 8 64 | |
xnuppc-b 8 64 | |
xnuppc-f 8 64 | |
xnuppc-f2 8 64 | |
xterm 8 64 | |
xterm+256color 256 32767 | |
xterm+88color 88 7744 | |
xterm+sl 8 64 | |
xterm+sl-twm 8 64 | |
xterm-1002 8 64 | |
xterm-1003 8 64 | |
xterm-16color 16 256 | |
xterm-256color 256 32767 | |
xterm-88color 88 7744 | |
xterm-8bit 8 64 | |
xterm-basic 8 64 | |
xterm-color 8 64 | |
xterm-hp 8 64 | |
xterm-new 8 64 | |
xterm-nic 8 64 | |
xterm-noapp 8 64 | |
xterm-pcolor 8 64 | |
xterm-sco 8 64 | |
xterm-sun 8 64 | |
xterm-vt220 8 64 | |
xterm-xf86-v32 8 64 | |
xterm-xf86-v33 8 64 | |
xterm-xf86-v333 8 64 | |
xterm-xf86-v40 8 64 | |
xterm-xf86-v43 8 64 | |
xterm-xf86-v44 8 64 | |
xterm-xfree86 8 64 | |
xterm-xi 8 64 | |
xterm1 8 64 | |
xtermc 8 64 | |
xterms-sun 8 64 | |
xwsh 8 64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import curses | |
import os | |
import sys | |
# find /usr/share/terminfo/ -type f -print | cut -d "/" -f 7 | xargs -L1 python test_colors.py | |
colors, color_pairs = None, None | |
def main(stdscr): | |
global colors, color_pairs | |
colors = curses.COLORS | |
color_pairs = curses.COLOR_PAIRS | |
try: | |
term = sys.argv[1] | |
os.environ['TERM'] = term | |
curses.wrapper(main) | |
if colors: | |
with open('out.txt', 'a') as fp: | |
fp.write('%s %s %s\n' % (term, colors, color_pairs)) | |
except: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment