I'm experiencing some strange console pagination behaviour in tmux when SSH'd to a Ubuntu host (EC2 instance on AWS). I've demonstrated this behaviour by running irssi inside the tmux and hitting PgUp and PgDn.
(I'm aware that normally one should hit Ctrl+B and then PgUp to go up through buffer pages in tmux, but this should work in irssi as it's a terminal application that takes over the buffer and the paging.)
You can see that it seems to think the window/buffer is about half of its actual size and move it to the top or bottom of the actual space, if that makes sense.
My $TERM
is xterm-256color
, $SHELL
is /bin/bash
, tty
is /dev/pts/2
(for the moment at least, the pts number changes I think).
tmux -V
is now 2.3 as I've tried installing the latest master from source, I first experienced this behaviour with the tmux that is packaged in the regular Ubuntu repositories (which was version 2.1). My Ubuntu is 16.04.1 LTS.
stty size
andecho $LINES $COLUMNS
print in your shell (before starting up irssi)? Do those numbers match the actual window size? Try these both before and after starting tmux.TERM=screen
inside tmux?screen-256color
about as well as your non-tmuxxterm-256color
.