Does anybody know how, in Ubuntu using tmux, to copy an entire terminal and/or copy multiple terminal pages?
The usual trick I use in the terminal in a non-tmux session is to scroll up to the top of where I'd like to highlight, left click and drag some text, then release the left mouse button, then scroll down a few screens (or however far is desired) then hold shift, then left click and drag and it will include all the lines where I started highlighting above all the way down to where I started the 2nd highlighting. This trick does not work in tmux however, since when I start a new highlight area, even if holding shift, tmux looses the previous highlight area.
Many of the other posts on the various interwebs have instructions to the effect of:
- Enter ‘copy mode’ by pressing
CTRL+b
,[
. - Use the arrow keys to go to the position from where you want to start copying. 3) Press
CTRL
+SPACE
to start copying. - Use arrow keys to go to the end of text you want to copy. Press
ALT
+w
orCTRL
+w
to copy into Tmux buffer. - Press
CTRL
+b
,]
to paste in a possibly different Tmux pane/window.
But when I do this, on step 4 nothing gets highlighted, i.e. Ctrl
+ Space
in step 3 does not seem to enter a copy mode. I'm not sure if this is due to certain hotkeys being preempted by Ubuntu or for some other reason.
I'm using Ubuntu 20.04 and tmux 2.8.
Any suggestions?