tmux
ctrl+b d
tmux attach
If you forgot to detach then you won't be able to attach unless you detach existing sessions using:
tmux attach -d
In tmux
you can use:
ctrl+b w
From command line you can use:
# view sessions tmux ls # attach to specific session tmux attach -t <session ID>
Enter command mode with:
ctrl+b :
Then enter:
set mouse on
This enables a bunch of other mouse options as well including a context menu on right click. Mouse selection works by default and will copy on select.
Enable scroll mode with:
ctrl+b [
You can then scroll with arrow keys and page up/down. Press Enter to quit scroll mode.
Vi mode seems to be the easiest option. Set Vi mode by entering command mode with:
ctrl+b :
And enter:
set mode-keys vi
Use standard Vi keys for selection, and Enter to yank and exit selection mode.