all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Colors on TTY (v26)
@ 2019-03-31  8:22 Aleksey Midenkov
  2019-03-31 15:15 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Aleksey Midenkov @ 2019-03-31  8:22 UTC (permalink / raw)
  To: help-gnu-emacs

Trial and error shown that emacs holds special knowledge on terminal names:
f.ex. "xterm-something" works as 256 colors and "xterm2" works as 16
colors. This is in fact very strange because there are terminals like
"screen.xterm-256color".
So it's not good to hold special magic about term names for that. Why it
doesn't check terminfo db for that (though it checks for 24bit as doc
states)? Looks like a bug to me.

To test it:
1. infocmp your current term into file;
2. rename file and rename term inside it;
3. tic renamed file;
4. set TERM to renamed term.

And voila: it's either 256 or 16 colors depending on term name!

Another bug:
(list-color-display)
always shows 16 colors from .emacs file (or from -f option). It detects 256
colors somehow later and then list-colors-display executed interactively
shows different result.


-- 
All the best,

Aleksey Midenkov
@midenok


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-03-31 20:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-31  8:22 Colors on TTY (v26) Aleksey Midenkov
2019-03-31 15:15 ` Eli Zaretskii
2019-03-31 17:20   ` Aleksey Midenkov
2019-03-31 17:41     ` Eli Zaretskii
2019-03-31 18:09       ` Aleksey Midenkov
2019-03-31 18:26         ` Eli Zaretskii
2019-03-31 19:45           ` Aleksey Midenkov
2019-03-31 20:51     ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.