1.Control+a, then Escape.
2. after that, you should be able to move your cursor around using the arrow keys:
↑, ↓, PgUp, PgDn and sometimes works mouse wheel
3. return control: q or Esc
How to scroll up and down in sliced "screen" terminal
-
26-06-2022 - |
题
I just installed screen
and like the idea to divide linux terminal into multiple pieces. But I can't figure out one thing: How to scroll up and down, when I'm in screen
. When I'm using regular linux terminal I can achieve this with Shift + Pg Up or Shift + Pg Dn`. but unfortunatelly it doesn't work in divided terminal.
That's what I mean when saying screen
and divided terminal:
And that's a regular termina (just in case):
解决方案
其他提示
Press Ctrl-a then [ will enter the copy mode, and you can scroll up and down like vim editor. Leave the copy mode by pressing Escape.
Ctrl-a (default prefix) + [: Enter copy mode.
Esc: Quit copy mode.
Within copy mode:
Ctrl-u, Ctrl-d: Page up/down by certain amount of lines while preserving cursor position (default by half of the screen)
Ctrl-b, Ctrl-f: Page up/down by a full screen
Use CTRL + A, then Escape to enter in "Copy mode". After that, you should be able to move your cursor around using the arrow keys. To exit, press Escape again.
Another way is to do the following to use Mouse Scrollwheel:
echo 'termcapinfo xterm* ti@:te@' >> ~/.screenrc
Scrolling works in screen with 'terminator' in ubuntu.
sudo apt-get install terminator