Friday, April 18, 2014

Copying text from GNU screen to clipboard

GNU Screen is a great tool for command line junkies, who have declared war against the useless device called 'Mouse'. But, it has a learning curve. I was looking for a way to copy text from my terminal to the system clipboard and a great SO answer helped me [ http://stackoverflow.com/a/16286619 ].

Here's the summary
Copy text from your screen session into GNU screen's copy buffer.
Run this command within screen: cat | xsel -b
Dump screen's copy buffer to STDIN: Ctrl+a+]
Send an EOF to cat to terminate it: Ctrl+d

No comments:

Post a Comment

Post your comment here. If you want to say something about programming problems, scripts, software etc, please try to be as descriptive as possible.

Connect Rapoo MT750S with Linux (Tested on Manjaro)

 I bought this obvious copy of MX Master 2S in hopes of having the device switching functionality along with a lightweight body because I ha...