11
3
I use GNU Screen's scrollback/copy mode. So I hit Control-A [ to enter copy mode, scroll up to the section I care about... and then I forget.
However, it seems like leaving GNU screen in scrollback/copy mode blocks execution of (whatever app was up at the time). For example, if I fire up a local webserver if I'm in scrollback/copy mode, then requests made to that web server will time out: the process doesn't respond until I exit copy/scrollback mode.
I've seen this both in Ruby On Rails script/server and with the Python tool Paste.
I've considered turning on logging mode for my windows, then just tailing/grepping through those logfiles as an alternative, but if this can be controlled by another means (setting, activating copy mode a different way) I'm very interested.
My screen -version says:
Screen version 4.00.03 (FAU) 23-Oct-06
(I asked this on quora.com, but maybe this is a better place)
"screen will block the output pipe of the process while you are in copy paste mode" - this might be true once a certain amount of output has been generated, but it doesn't seem to be true in this case:
while ((1)) ; do echo $i; i=$((i+1)); sleep 0.1; done
- try invoking Copy mode and wait a bit. When you exit copy mode, the value of i will have jumped, showing that execution continued in the background.Yet I have seen screen block output for some processes, so I'm curious as to what exactly determines whether screen blocks or not. – davidA – 2018-02-02T01:28:24.383
"what exactly determines whether screen blocks or not" - the size of scrollback buffer determines it. You can increase it to be unlimited, but this will take memory. But will not block. – san – 2018-03-31T09:10:46.897