12

I ssh-connect an ubuntu server from an ubuntu client machine. And resume my screen session by running screen -d -r name. I'm not able to scroll inside the screen session. I created my screen session by running screen -S name. Do I have to pass any extra flag to make the scrolling work?

1 Answer 1

28

By default Screen will keep a scrollback buffer, but you can't use it the same way as the "conventional" scrollback buffer maintained by your terminal emulator. I.e. you can't use your mouse to scroll up.

You need use screen key bindings to enable copy/scrollback mode.

For me that is with CTRL+a ESC

(screen will notify that copy mode has been enabled)

and then I can use the UP-arrow on my keyboard to scroll back, but you can also use the other movement keybindings to move and select in the scrollback buffer.

1
  • 4
    Also while scrolling the first <ENTER> pressing begins the copy block and the second close the block and put it into the buffer. So pressing the <ENTER> twice quit the scrolling mode with the empty copy buffer.
    – Kondybas
    Commented Jul 9, 2018 at 18:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .