问题
I unefficiently use "^a + ESC SPACE -- SPACE" and "^a + ]".
1. How can I copy a big file to GNU Screen buffer like
^a + : cat big_file > new_buffer
^a + : new_buffer ]
2. How can specify the number for each buffer like
^a + : cat big_file 2> new_buffer_number_2
^a + 2]
回答1:
Maybe you want :readbuf
?
^A :readbuf /path/to/file
^A ]
I haven't used 'buffers' in GNU Screen (never knew they existed), but I'm guessing :readreg
is the buffer-y version of :readbuf
:
^A :readreg x /path/to/file
^A :paste x
来源:https://stackoverflow.com/questions/1318046/gnu-screen-files-to-numbered-buffers