tmux-plugins / tmux-sensible

basic tmux settings everyone can agree on
MIT License
1.73k stars 90 forks source link

Why not `tmux-256color`? #69

Open ming-hao-xu opened 7 months ago

ming-hao-xu commented 7 months ago

Now it is

# Upgrade $TERM
set -g default-terminal "screen-256color"

but why not

# Upgrade $TERM
set -g default-terminal "tmux-256color"

tmux color term enables italic font and ensure more color consistency with xterm-256color which is usually the case outside tmux.

geoffreyvanwyk commented 4 months ago

Your suggestion is certainly sensible because it is supported by the tmux wiki: https://github.com/tmux/tmux/wiki/FAQ#i-dont-see-italics-or-italics-and-reverse-are-the-wrong-way-round, and by my experience.

trappmartin commented 4 months ago

When used in conjunction with fzf the current setup results in a common fzf issue: https://github.com/junegunn/fzf.vim/issues/1356#issuecomment-2088240779

Using set -g default-terminal "tmux-256color" instead resolves this. Might be worth to changes this.

rifazn commented 1 month ago

I'm new to tmux. Been using the default config only with a few changes made to it. Though, I'm glad to have found this, even I was wondering why it gets set to screen-256color when the default tmux-256color has been working tip top.