Scroll pages with "screen" in a putty window
I am connected with Windows putty
to a Linux computer, and inside this SSH session, I use screen
(similar tu tmux
).
I know that, in order to scroll with PG-UP / PG-DOWN, one has to do this before:
CTRL+A[
This is not very handy.
Is there a way to configure screen
to have something like SHIFT + PG-UP / SHIFT + PG-DOWN to scroll pages (or mouse scrolling)? (without having to do CTRL+A, [)
Without screen
it's just as easy as doing SHIFT + PG-UP / SHIFT + PG-DOWN.
Note: With tmux
, this might be the solution: How do I scroll in tmux?
Solution 1:
As documented here: https://unix.stackexchange.com/a/165810/137396
In your local .screenrc
file on you Linux host (probably in home directory) add the following:
bindkey "^[[5;2~" eval "copy" "stuff ^b"
bindkey "^[[6;2~" eval "copy" "stuff ^f"
This should bind Shift+PgUp, / PgDn via copy mode. To escape from copy mode use ESC.