The problem:I open a terminal (in Linux Mint, so mate-terminal)zsh is the shellThen I run tmuxEdit a file with nanoScroll up and down that file with the cursorIssue: When scrolling down in nano, only the bottom half of the terminal window gets refreshedIssue: When scrolling up in nano, only the top half of the terminal windogets refreshedThe complete nano view of file does not get refreshed in my terminal window when scrolling. Any tips?Edit: my .tmux.confIt seems that this line specifically is the culprit (as commenting it out fixes the problem):set -g default-terminal xterm-256colorI'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 outputset -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 offset-option bell-action noneset-option visual-bell off
Fixing scrolling in nano running in tmux in mate-terminal
terminal;zsh;tmux;nano
From the tmux FAQ:******************************************************************************* PLEASE NOTE: most display problems are due to incorrect TERM! Before       ** reporting problems make SURE that TERM settings are correct inside and     ** outside tmux.                                                              **                                                                            ** Inside tmux TERM must be screen or similar (such as screen-256color).  ** Don't bother reporting problems where it isn't!                            **                                                                            ** Outside, it must match your terminal: particularly, use rxvt for rxvt    ** and derivatives.                                                           *******************************************************************************http://tmux.git.sourceforge.net/git/gitweb.cgi?p=tmux/tmux;a=blob;f=FAQ