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:


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?

1 Answer 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.

  • I used the solution in the link you provided: PG UP / PG DOWN works, but not SHIFT PG UP / SHIFT PG DOWN from my Putty / SSH terminal. Not a big deal, PG UP / DOWN is already great!
    – Basj
    Jul 28, 2021 at 13:32
  • I modified the code in my answer to add Shift, did it not work? The code I provided is untested in fairness as I'm not in front of a PC
    – fswings
    Jul 28, 2021 at 14:02
  • 1
    It does not seem to work with SHIFT, but not a big deal, it is great with PG UP / PG DOWN!
    – Basj
    Jul 28, 2021 at 14:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.