In the Linux terminal the key sequence Shift-PageUp can often be used to scroll up.
However, this key sequence doesn't seem to work in gnu screen when ssh'ing to particular machines.
I have two questions. 1) Where is this key sequence defined? 2) What can I change in my screen settings to always allow this?
Does this have something to do with the termcap entries?
I am currently using three machines. Two of which will scroll the buffer up when pressing Shift-PageUp. One machine will not respond to the key press at all.
Working Machines:
- Centos 6.5
- Centos 5.9
Not working machine:
- Centos 5.9
Here is my .screenrc which I am using on all three machines
termcapinfo xterm|xterms|xs|rxvt ti@:te@
term screen-256color
hardstatus on
hardstatus alwayslastline
hardstatus string "%{= wb}%-w%{.yb}%n %t%{-}%+w %=%{b r} %H %{..b}[%l] %{..K}%C%a "
startup_message off
# turn off visual bell
vbell off
# Autodetach session on hangup instead of terminating screen completely
autodetach on
# give more scroll back
defscrollback 20000
# turn on alternate screen support
altscreen on
# bash will be replaced by the running command
shelltitle " $ |bash"
screen 3
screen 2
screen 1
I'm not sure if it matters, but I am using ROXTerm as my terminal emulator.
Note: I know that Ctrl-A [ can be used to enter screen's copy mode scroll-back buffer. However I don't want to use this. I am interested as to why Shift-PageUp in screen works on some machines as expected, but is completely ignored on other machines.
Edit: I was able to solve this on the one machine it was not working on by changing the termcapinfo line in .screenrc to the following:
termcapinfo xterm*|xs|rxvt ti@:te@
On the one machine that didn't work, my $TERM environment variable was set to xterm-256color, so is it possible that there is no termcap/terminfo entry for "xterm-256color"?