Copying the GNU screen scrollback buffer to a file (extended hardcopy)

How do I easily copy the GNU Screen scrollback buffer to a file? I.e., a more powerful version of the ‘hardcopy’ command?

In GNU screen, I can use “Ctrl + A Esc” to enter the scrollback
buffer. I could then mark the entire buffer and use “Ctrl + A Ctrl + ]” to paste it into an Emacs buffer, thus saving it to a file.

However, this is tedious. Is there a Screen command that’ll simply copy the scrollback buffer to a file, like ‘hardcopy’ does for the visible portion of the screen?

7 Answers
7

Leave a Comment