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

  1. Install GNU Screen: sudo apt-get install screen
  2. Open screen: screen (or screen myprog my args here)
  3. Run your program, producing the output you want copied
  4. Enter copy mode: Ctrl+A [
  5. Move the cursor to a starting point and hit Enter to start selecting
  6. Move the cursor to the ending point and hit Enter to finish selection
  7. 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