Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gnome-terminal - How to Copy selection to clipboard automatically?

I want to make gnome-terminal behave in such a way that when the end user selects a region on the terminal (with a mouse or mouse key), it gets automatically copied into the clipboard. Is it possible at all? If so, how?

like image 252
OTZ Avatar asked Jul 27 '10 23:07

OTZ


People also ask

How do I enable Select to copy in Linux terminal?

Use Ctrl+Insert or Ctrl+Shift+C for copying and Shift+Insert or Ctrl+Shift+V for pasting text in the terminal in Ubuntu. Right click and selecting the copy/paste option from the context menu is also an option.

How do I copy a selected content in Linux?

Ctrl+Shift+C and Ctrl+Shift+V If you highlight text in the terminal window with your mouse and hit Ctrl+Shift+C you'll copy that text into a clipboard buffer. You can use Ctrl+Shift+V to paste the copied text into the same terminal window, or into another terminal window.

How do I copy and paste in Gnome terminal?

Alternatively, you can press Shift + Ctrl + C . Highlight the text portions you wish to copy with color and font attributes, then right click on the text portion and select Copy as HTML. Right click in the Terminal and select Paste.

How do I enable right click Paste in Ubuntu terminal?

First highlight the text you wish to copy. Then, press right mouse button and select Copy . Once ready, right-click anywhere on the terminal window and select Paste to paste the previously copied text.


2 Answers

it's possible.

sudo apt-get install parcellite 

then in the settings check "use primary" and "synchronize clipboards". it works.

like image 158
fastmultiplication Avatar answered Sep 27 '22 17:09

fastmultiplication


It should be in the X11 clipboard. (Not the same as the GTK clipboard). Press middle-click to paste.

like image 34
unutbu Avatar answered Sep 27 '22 16:09

unutbu