6

I've noticed that after detaching and reattaching a screen session, I lose the scroll history. I have done some searching, but anytime I combine "screen" and "scroll" I get inundated with scroll wheel integration instructions.

Anyway, synopsis:

  1. In screen
  2. Large output
  3. Detach screen
  4. Reattach screen, but scrolling only produces blank lines at the top of the terminal.
crunk1
  • 2,560
  • 1
  • 26
  • 32

1 Answers1

8

For me it sounds like you scroll in your terminal (with you scrollwheel?). Of course your terminal emulator won't know the history of the screen.

To scroll inside screen you have to switch into copy mode (Ctrl A + [), then you can move around with your navigation keys (hjkl,left right up down;PgUp,PgDown eth).

dingensundso
  • 176
  • 4
  • 3
    Is there a way to use the scroll wheel that way? I've done http://stackoverflow.com/a/1125947/1436495, but I would rather scroll screen instead of the terminal emulator. – crunk1 Aug 11 '15 at 23:53
  • `copy mode` can also be activated with `Ctrl + A` + `ESC`, in case you prefer to do it with one hand. – Sam Sirry Aug 12 '22 at 16:51