How to copy and paste from Terminal to other applications?
Hi,
Is copy and paste from Terminal to other applications like Chrome or Leafpad supported? I tried a few ways (Ctrl-C, Ctrl-Insert, right-click, etc) but not working. Thank you. |
yes, it is possible.
linux uses 2 clipboards, primary and secondary. simply highlighting the text copies to the primary clipboard. inside the terminal you canthen paste with 'Shift+Insert'. try it. however, it doesn't carry over to your browser. some terminal emulators have the additional 'Shift+Ctrl+C' (and '...+V') commands to use the secondary clipboard. what terminal emulator are you using? |
Hi.
GUI? Otherwise: Code:
man xsel Code:
man xclip Edit\add: Oh, install GPM... ;) https://www.virtualbox.org/attachmen...10914/VM01.PNG Edited again to fix link... cut\paste don't always play well with HTML LOL! |
I'm running Unity in Ubuntu 15.10 at the moment. Went to gnome-terminal and simply highlighted some text (in this case, $ man man). Pasted the text into a text document (using the Geany text editor) by clicking on the middle mouse button (the mouse wheel). Same thing worked for pasting the text into a web browser (Chromium).
|
Quote:
|
Quote:
|
Quote:
xterm + aterm do not use the secondary clipboard afaik. good to know about the middle mouse click working both ways! i usually use a clipboard manager with hotkeys... |
Quote:
WHY would it not be ???????? some programs might not support it but the os dose |
Why, when? ???
Edit\add: I like that I can copy text from almost anywhere in Linux, dialog boxes &c... I think I missed the "not" in John's statement. :doh: |
Hi, other than middle mouse click, any other way to paste text?
Anyway to change the default "-tn xterm" option? Quote:
|
For those without mouse and cannot do middle click, can try start xterm using these parameters:
xterm -ls -xrm 'XTerm*selectToClipboard: true'& then Ctrl-Insert: Copy from xterm/apps after selection and Shift-Insert: Paste selection into xterm/apps |
All times are GMT -5. The time now is 04:47 PM. |