You probably do have both 256 and 24-bit color support, the issue is that you don't like it since it's allowing your Emacs theme to use more colors. I do think the best option is either switching to a 16 palette theme or using a matching theme for terminal + Emacs.
Conversation
If you really want to disable 256 / 24-bit color support you can use the terminfo decompile + recompile approach that I gave you though.
3
1
These are two different options though: 16/256 colors are set by this line: gist.github.com/dylanwh/9029e6
24-bit color comes from this line:
1
Here is diff of changing to 16 colors.
xterm-256color has *other* changes unrelated to colors that you probably need for full terminal support, so hacking it back down to 16 is the best. If you run tic on this, it will make a ~/.terminfo/x/xterm-16color
gist.github.com/dylanwh/9029e6
1
you will need that .terminfo/ directory on every computer, and to set TERM=xterm-16color, but it should make everything consistent.
1
The ccc, initc and oc capabilities are for changing color values which is another difference between xterm / xterm-256color that's probably not wanted (just delete both). AFAICT, all the differences in `infocmp xterm xterm-256color` are tied to colors.
1
It depends, xterm is often misconfigured for keys or mouse support:
Here xterm has wrong defintions for kind, kmous, knp, kpp, etc.
1
1
Guess that older versions of ncurses might have had a substantially more screwed up database. It's still pretty screwed up and they've done some annoying things.
old ncurses is the bane of my existence.
twitter.com/dylan_hardison
Honestly though, if I wanted 16 colors I would hack xterm-256color *and keep the name*.
Because a lot of programs just do things based on the /name/ xterm-256color. :P
Quote Tweet
current mood:
dylan@odin ~ > man ls
WARNING: terminal is not fully functional
- (press RETURN)
dylan@odin ~ > emacs
*ERROR*: Cannot open terminfo database file
all I want is to have setb24 and setf24 terminfo entries! Why is this so difficult!
Show this thread


