I've tried really hard for many years to not learn about termcaps and the diff between TERM=xterm, vt200, vt100, etc.
But too often ssh'ing in from Linux & macOS, my color palette is slightly wrong or page up/down don't work and I just try diff until it works.
Reference recs?
Conversation
I've read en.wikipedia.org/wiki/Termcap and see gnu.org/software/termu but I'm looking for a summary of which TERM=foo names do/add what.
Also, it seems like "TERM=screen screen -d -r" seems pretty fancy. Italics, even!? Page up/down works, color respecting my prefs TBD.
2
3
It seems some TERM=foo values respect the ~16 colors in my terminal profile preferences, and some TERM=bar values must support larger palettes (or arbitrary colors), and then I have no control over them.
Or I don't know where/how to control them.
3
Replying to
There are 256 and even 24-bit color palettes. You generally need to configure the applications using them. Most applications don't make use of it by default without explicitly configuring them to do it.
1
Replying to
The easiest solution is picking a broadly supported theme and configuring it everywhere. You probably don't want to disable the broader color palette support since it allows syntax highlighting, etc. to have more color classes.
2
256 color support is very common / standard to include, 24-bit color support on the other hand is much less common. Some themes for Vim and Emacs don't make the assumption that the terminal is configured with the same color scheme so they avoid using the 16 color palette.
So you can end up with mismatches even with the same theme if the Emacs / Vim version of the theme is made for the 256 color palette exclusively without assuming the terminal palette is correct. You'd need to fix the theme yourself in that case or use someone else's take on it.
1
Replying to
If I want to force 16 colors (but still have PgUp/Down + bold + the italics I just today saw), would I then have to make my own termcap name/file? Or do some features imply the existence of other features/levels?
1
Show replies

