Text selection CTRL+SHIFT+Cursor Keys in shell?
The only way I know to select text from a shell without using the mouse is using GNU screen.
Quick tutorial:
Note: All GNU Screen commands are of the form: Ctrl+A followed by another key or combination
- Install GNU Screen:
sudo apt-get install screen
- Open screen:
screen
(orscreen myprog my args here
) - Run your program, producing the output you want copied
- Enter copy mode: Ctrl+A [
- Move the cursor to a starting point and hit Enter to start selecting
- Move the cursor to the ending point and hit Enter to finish selection
- Paste with Ctrl+A ]
Read more:
- How do I copy text from the program "screen" to my clipboard?
- GNU Screen Survival Guide - Stackoverflow
- How do I copy text from my xterm without a mouse - Stackoverflow