To override the $TERM
environment variable within tmux sessions, add the following to .tmux.conf
and change tmux-256color
to xterm
or xterm-256color
.
set -g default-terminal "tmux-256color"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
Disable mouse wheel in virtual view
set -ga terminal-overrides ',*256color*:smcup@:rmcup@'