views:

121

answers:

1

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]
+2  A: 

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
strager
`CTRL-A :readreg a /path/to/file` followed by `CTRL-A :paste a` to paste
rampion
(buffer names are one character)
rampion
rampion: strager: Very cool! I knew Screen had the property :D Just awesome, I will use it over Mutt, ELinks, BC and many other apps. Great thanks!
Masi
@rampion, Thanks, I've updated my answer.
strager