My intention is to copy many pages of my terminal output to a file for logging purpose. The trick to copy screen content does not work well with me. It requires too many keys to remember, and even if I remember it, it is still slower than Shift+F7 to capture the whole thing.
However, Shift+F7 opens a new window tab name "PRINTSCREEN*" using my environment $EDITOR
, and if I choose to save it (using vim or emacs), it will save to something like /tmp/shm/byobu-username-RanDomNameDir/
.
I will have to navigate to my $PWD
to save the file. The path is most of the time very deep and long. Is there a way I can change so that the temporary buffer of byobu's PRINTSCREEN
default to $PWD
?
Update:
Why not just use redirection?
Many suggested this. The answer is, I know about redirection. But this is not the case to use it. I do interactive with the terminal to explore various direction before script the work and redirect output to file "properly". My question is about tweaking configuration of byobu's Shift+F7 command. The sole purpose of it is to serve the use cases where screen redirection did not happen. So no need to talk about screen redirection please.
PrtScrn
key work for you? – Jos Jul 10 '18 at 09:00Shift+F7
command – biocyberman Jul 10 '18 at 10:31