Micah Cowan <mi...@cowan.name> writes:

> I added the following line in my .tmux.conf:
>
> if 'test "$(tput colors)" = "256"' 'set -g default-terminal screen-256color'

When I investigated such an approach (for Screen instead of tmux), I
rejected it because one can create a screen on an eight-bit terminal
(e.g. xterm -e screen) but then attach to the same session from a
three-bit terminal (e.g. openvt -- screen -xR).

Since there's no reliable way to update what TERM an already-running
child app sees when changing terminal emulators (indeed, in the example
above the app is visible in BOTH terminals concurrently) I took the view
that it was safest to give up on 256-colour support entirely.

That, and it's MUCH easier to set a coherent 16-colour palette in
xterm/fbcon than to try to set a coherent set of 512 or so Emacs faces,
with or without color-theme.el -- to say nothing of all the other colour
apps I run.


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to