From 46f1cad6a1971fee10fdadb746affa4a7ba20719 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 10 Jul 2020 13:33:06 +0300 Subject: [PATCH] .tmux.conf: Update comment about TERM variable I switched from Solarized to Selenized colorscheme and noticed some things have changed in tmux and terminals since I last looked. For starters, it seems that, if your terminal emulator is configured to use the sixteen color ANSI palette with Selenized values, then you should configure vim and other apps to use sixteen colors instead of approximating "more" with 256. I will update my vim config to use sixteen colors also. Eventually, once all the systems I use have newer terminfo, I will be able to set the TERM variable inside tmux to be "tmux" instead of pretending to be screen. For now, at least CentOS 7 doesn't like the "tmux" TERM value so I will leave this See: https://github.com/jan-warchol/selenized/issues/65 --- .tmux.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index c6d2b73..93d22a4 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -102,9 +102,10 @@ set-option -g status-right '#[fg=colour47]#H #[fg=red]#(cut -d " " -f 1-3 /proc/ # scrollback buffer set-option -g history-limit 4096 -# hijack the TERM variable for shells inside tmux -# According to the tmux FAQ this MUST be "screen" or a derivative -# http://tmux.svn.sourceforge.net/viewvc/tmux/trunk/FAQ +# 2020-07-10: According to the tmux FAQ, inside tmux TERM must be "screen", +# "tmux" or similar (such as "tmux-256color"). Systems with older terminfo +# like CentOS 7 don't support tmux-256color so let's keep screen-256color +# for now. set-option -g default-terminal "screen-256color" #### COLOUR (Solarized dark)