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
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.