I want to copy some text from screen to my clipboard. I know how to get into copy and paste mode in screen, but I want that text to go to my clipboard so I can paste it on the browser, for example.
How do I do this? Thanks!
In most programs, you would select text and press Ctrl + C to copy it. Pasting text would be done by pressing Ctrl + V. In the terminal emulator program, Ctrl + C has a special meaning, it interrupts (stops) programs by default.
Your terminal emulator program may have other shortcuts defined. For example, Konsole and Gnome Terminal uses Ctrl + Shift + C for copying the selected text. Alternatively, select text and copy it by using the Copy option in the Edit menu or the context menu.
If the output of your program is large, you might want to enable the scrollback buffer of
For a raw and dirty implementation, install the package
Now, when you select something in
For the reverse, copy something in your browser with Ctrl-C, then go to
For this to work the variable
As you see, it is not simple, and not bullet proof, but I hope it can help.
This answer is partly inspired from synchronizing GNU screen’s paste buffer and the X selection
Just use copy operation in your terminal application. If you are using gnome-terminal for example, just select test and use context menu -> copy.