Date
Jan. 9th, 2025
 
2025年 12月 10日

Post: How to scroll inside GNU/screen

How to scroll inside GNU/screen

Published 09:01 Jan 07, 2025.

Created by @ezra. Categorized in #UNIX/Linux, and tagged as #UNIX/Linux.

Source format: HTML

Table of Content

Screen has its own scroll buffer, as it is a terminal multiplexer and has to deal with several buffers.

Maybe there's a better way, but I'm used to scrolling using the "copy mode" (which you can use to copy text using screen itself, although that requires the paste command too):

  • Hit your screen prefix combination (C-a / control+A by default), then hit Escape or [.

  • Move up and down with the arrow keys ( and ).

  • When you're done, hit any key except arrow keys, numbers, and certain letters to get back to the end of the scroll buffer. Most people use q or Escape

(If instead of exiting you press Enter or Space and then move the cursor, you will start selecting text to copy, and pressing Enter or Space a second time will copy it. Then you can paste with C-a followed by ].)

Of course, you can always use more and less, two commonly used pagers, which may be enough for some commands.

Pinned Message
HOTODOGO
The Founder and CEO of Infeca Technology.
Developer, Designer, Blogger.
Big fan of Apple, Love of colour.
Feel free to contact me.
反曲点科技创始人和首席执行官。
开发、设计与写作皆为所长。
热爱苹果、钟情色彩。
随时恭候 垂询