The messy codes looks like this:
As to reproduction, firstly I ssh a server and open the tmux. then if there is a disconnection, whatever the mouse action (like click or scroll) I made, it would show the messy code. My tmux.conf:
set-option -g prefix2 `
set-option -g mouse on
bind C-c run " tmux save-buffer - | xclip -i -sel clipboard"
bind C-v run " tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
tput reset
). Or something else?