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

前端 未结 7 455
隐瞒了意图╮
隐瞒了意图╮ 2020-12-12 08:43

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

相关标签:
7条回答
  • 2020-12-12 09:07

    TL;DR: ^A:writebuf <filename>

    The OP seems to want a way to use the selected portion of the buffer you get when doing a ^A[ , selecting text using space as the start and finish, and then instead of using ^A] to paste, save the resulting selected portion of the buffer to a file.

    This worked:

    ^A:writebuf <filename>

    Note: one 'f' in writebuf

    0 讨论(0)
提交回复
热议问题