.tmux: Recent change caused duplicate characters and weird backspace behaviour
I updated my fork from this upstream and began to experience weird behaviour like this https://stackoverflow.com/q/45931164/7359333.
I have managed to fix it by removing this line https://github.com/gpakosz/.tmux/blob/0ad7f141dc10fe4964b963bc215bb5e12972b0c3/.tmux.conf#L13
My config:
MacOS==12.0.1
tmux==3.2a
zsh==5.8
using oh-my-zsh
and powerlevel10k
theme
Possibly related to this https://github.com/gpakosz/.tmux/issues/516 but it wasn’t only changing colours it was also doing the weird stuff described above
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (8 by maintainers)
Commits related to this issue
- make sure to use /usr/bin/infocmp to probe if tmux-256color is available system wide on macOS, here are the steps to install tmux-256color system wide $ $(brew --prefix ncurses)/bin/infocmp tmux-256c... — committed to ooosssososos/.tmux by gpakosz a year ago
- make sure to use /usr/bin/infocmp to probe if tmux-256color is available system wide on macOS, here are the steps to install tmux-256color system wide $ $(brew --prefix ncurses)/bin/infocmp tmux-256c... — committed to farhadkarimi/.tmux by gpakosz a year ago
- make sure to use /usr/bin/infocmp to probe if tmux-256color is available system wide on macOS, here are the steps to install tmux-256color system wide $ $(brew --prefix ncurses)/bin/infocmp tmux-256c... — committed to Rafiot/.tmux by gpakosz a year ago
- make sure to use /usr/bin/infocmp to probe if tmux-256color is available system wide on macOS, here are the steps to install tmux-256color system wide $ $(brew --prefix ncurses)/bin/infocmp tmux-256c... — committed to TakiJoe/.tmux by gpakosz a year ago
Hello @paddyroddy 👋
Can you try adding
set -g default-terminal "screen-256color"
in your~/.tmux.conf.local
, kill all tmux server and client processes, then launch tmux again?Hello @paddyroddy 👋
I finally got my hands on macOS Montery and there’s
tmux-256color
terminfo entry installed by default. The version of the system ncurses is still5.7
(as reported by/usr/bin/tic -V
).So, if
/usr/bin/infocmp -x tmux-256color
finds thetmux-256color
terminfo entry, then it means you already tried to install such an entry yourself.Here’s what worked for me with a fresh macOS Monterey and a fresh clone of Oh my tmux! (assuming tmux is installed via homebrew):
Then I restarted tmux and let it pick
tmux-256color
fordefault-terminal
(that is to say I don’t overridedefault-terminal
in my~/.tmux.conf.local
copy) and verifiedhtop
works with colors as well asNo idea. Works for me with
zsh
It’s instant
Well here are things that should be true
tmux
, the value ofTERM
should match the running terminal emulator, usuallyxterm-256color
tmux
, the value ofTERM
should bescreen-256color
or eventmux-256color
when the OS has the proper data files that make thetmux-256color
value availableNot sure you moved over your settings but from what we discussed so far you
tmux-256color
when availableOn my side, I’ve yet to experiment with macOS Monterey to see how things go
Then it seems that you have broken
tmux-*
terminal definitions installed on your system.I suggest you don’t alter
.tmux.conf
and use your.tmux.conf.local
copy instead.I don’t have macOS Monterey ready so we’ll see if other people have problems with
tmux-*
terminal definitions