.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-256colorterminfo 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-256colorfinds thetmux-256colorterminfo 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-256colorfordefault-terminal(that is to say I don’t overridedefault-terminalin my~/.tmux.conf.localcopy) and verifiedhtopworks with colors as well asNo idea. Works for me with
zshIt’s instant
Well here are things that should be true
tmux, the value ofTERMshould match the running terminal emulator, usuallyxterm-256colortmux, the value ofTERMshould bescreen-256coloror eventmux-256colorwhen the OS has the proper data files that make thetmux-256colorvalue availableNot sure you moved over your settings but from what we discussed so far you
tmux-256colorwhen 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.confand use your.tmux.conf.localcopy instead.I don’t have macOS Monterey ready so we’ll see if other people have problems with
tmux-*terminal definitions