[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Black and white emacs -nw (WAS: Re: [PATCH v3 0/4] Support 24-bit te

From: Rami Ylimäki
Subject: Re: Black and white emacs -nw (WAS: Re: [PATCH v3 0/4] Support 24-bit terminal colors.)
Date: Sun, 19 Feb 2017 14:43:54 +0200

2017-02-19 9:33 GMT+02:00 Kaushal Modi <address@hidden>:

I cannot set the 24-bit colors working on xterm directly.

XTerm supports the direct color mode escape sequences, but approximates colors. See https://gist.github.com/XVilka/8346728#parsing-ansi-colour-sequences-but-approximating-them-to-256-palette and https://gist.github.com/XVilka/8346728#now-supporting-truecolour for details.

Note that if you want to use XTerm, then using TERM=xterm-256color with Emacs is enough, because 24-bit colors are approximated anyway.

I did not do a full bootstrap. But it still seems to work in uxterm in tmux configured for 24-bits.
But it doesn't work directly in an xterm terminal.

What debug information can I provide from the direct xterm session or xterm+tmux session?

I haven't used tmux before, but I was able to make Emacs work in direct color mode with following steps:

* Use a terminal that supports 24-bit colors (gnome-terminal).

* Compile tmux from https://github.com/tmux/tmux.git. The version provided with Ubuntu doesn't support Tc-flag.

* Use following terminfo source (add the Tc-flag and use semicolon separators for tmux):

$ cat terminfo-24bit.src

# Use semicolon separators.
xterm-24bits|xterm with 24-bit direct color mode,

 * Compile the terminfo source, run tmux, set your TERM to xterm-24bits, check that Tc is supported:

$ tmux info | grep Tc
 199: Tc: (flag) true

* Finally run Emacs under tmux.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]