- I open a terminal (in Linux Mint, so mate-terminal)
- zsh is the shell
- Then I run tmux
- Edit a file with nano
- Scroll up and down that file with the cursor
- Issue: When scrolling down in nano, only the bottom half of the terminal window gets refreshed
- Issue: When scrolling up in nano, only the top half of the terminal windo gets refreshed
The complete nano view of file does not get refreshed in my terminal window when scrolling. Any tips?
Edit: my .tmux.conf
It seems that this line specifically is the culprit (as commenting it out fixes the problem):
set -g default-terminal "xterm-256color"
I'm pretty sure I added that line because I have issues even running nano during an SSH session.
Here is the full file:
set-option -g default-shell /bin/zsh # Make sure tmux knows we're using 256 colours, for # correct colourised output set -g default-terminal "xterm-256color" # The following were marked as "unknown", so # I do know what I'm doing wrong. #set -g mode-mouse on #setw -g mouse-select-window on #setw -g mouse-select-pane on # Attempting to stop "alert" sound upon startup # but none of these are working... set-option bell-on-alert off set-option bell-action none set-option visual-bell off
TERMinside tmux (
echo $TERMin the shell inside tmux)? Also, does
echo $LINESreturn the correct number of lines? If you have a
.tmux.conf, try without, and if it's the culprit, post its content.
xterm-256color. Lines says
39(hmm, does that mean columns or rows?). Right you are, moving
.tmux.conffixes the issue, so I'm putting the contents above.
screen-256colorby default. Changing
TERMto something else within
tmuxmay have unintended consequences. Make sure the terminfo entry for screen-256color is present on your system.
screen-256colorended up with nano failing to launch during SSH sessions with the error:
Error opening terminal: xterm-256color.