LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-30-2003, 10:24 AM   #1
wampfler
Member
 
Registered: Nov 2003
Location: switzerland
Distribution: Fedora Core 1.0/Gentoo
Posts: 35

Rep: Reputation: 15
Copy/Paste in xterm


I hope you can help me:
How can i copy text from xterm to mozilla or the other way? i use window maker, not kde or gnome. Or isn't this possible in Linux?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 12-30-2003, 10:45 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
"How can i copy text from xterm to mozilla or the other way?"

I think that you use drag and drop instead of cut and paste. I too always have trouble making it work.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 12-30-2003, 10:58 AM   #3
wampfler
Member
 
Registered: Nov 2003
Location: switzerland
Distribution: Fedora Core 1.0/Gentoo
Posts: 35

Original Poster
Rep: Reputation: 15
drag & drop between xterm and mozilla? no way here!
 
Old 12-30-2003, 01:43 PM   #4
Jose Muņiz
Member
 
Registered: Jul 2003
Location: Mexico City
Distribution: Slackware 9.1, SuSE 9.1
Posts: 248

Rep: Reputation: 32
Select your text in Mozilla, then go to xterm and press the middle button of your mouse. That should do the trick
 
2 members found this post helpful.
Old 12-30-2003, 02:50 PM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
"Select your text in Mozilla, then go to xterm and press the middle button of your mouse. "

Thanks.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 12-30-2003, 04:35 PM   #6
wampfler
Member
 
Registered: Nov 2003
Location: switzerland
Distribution: Fedora Core 1.0/Gentoo
Posts: 35

Original Poster
Rep: Reputation: 15
thx for help. i thought it should work with ctrl-c and ctrl-v or another key combination
 
Old 03-29-2009, 08:50 AM   #7
zzypty
LQ Newbie
 
Registered: Mar 2009
Posts: 13

Rep: Reputation: 3
This reply might be extremely late and not benefit the person who started this thread. But, just in case there are any other people who stumble upon this thread, here is a detailed explanation.


Copying from xterm to another application :

When you highlight something in xterm, it gets copied to your primary buffer. The only way to paste something from your primary buffer is to click your scroll (on your scroll mouse) or click your left and right keys of your mouse simultaneously.

ctrl-v pastes from your clipboard. xterm does not recognise the clipboard and nor does it recognise the keys ctrl-v. Hence, the conventional copy-paste method does not work.

I would recommend you try the following -
(a) Open xterm and select (highlight) the text you want to copy
(b) Go to the application where you want to paste the text. Hover your mouse above the place where you want to paste.
(c) Click your scroll button on your mouse.

One should be very careful about the primary buffer. Being very volatile, any higlighting will erase the buffer of its previous contents. For instance, an alt-d (in firefox) will replace the contents of your primary buffer with the url of your opened tab.


Copying from another application to xterm :

Most other applications, the process of copying to the clipboard results in copying to the primary buffer as well. For instance, when we wish to copy (for instance) the url opened in a certain tab, we do the following -
(a) Open the tab and highlight the url (a ctrl-a or alt-d, etc)
(b) Click ctrl-c to copy the string
Here, in step (a), we write to the primary buffer and in step (b), we write to the clipboard.

Thus, when we wish to copy some text and paste it in xterm, all we need to do is select the text (highlight it) and move your cursor to xterm and click the scroll button.
(Note : We don't need to do a ctrl-c!)


If you wish to fiddle around a little more with your xterm keybindings, etc., this article might help you -
http://www.davidsimmons.com/soft/xtermhacks/
It certainly helped me a lot!
 
2 members found this post helpful.
Old 03-29-2009, 09:18 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Posting is appreciated, it's valuable information, but please don't post in threads older than say 4 to 6 months. It would be better to create your own thread then point to the original one. BTW, ever heard of 'autocutsel' (clipboard buffers synchronization tool)?
 
Old 10-24-2014, 03:47 AM   #9
Mark-32
LQ Newbie
 
Registered: Nov 2013
Posts: 1

Rep: Reputation: Disabled
Thumbs up it is supported already. no hack needed.

<Control> + <Insert> key combination will paste into xterm
 
Old 04-04-2015, 04:15 PM   #10
Lunar
Member
 
Registered: Feb 2005
Location: Texas, USA
Distribution: opensuse
Posts: 106
Blog Entries: 1

Rep: Reputation: 8
xterm paste

Ctrl+C will not work in any terminal as it's used to break, interrupt

i've tried everything. Shift+Ins works for me on opensuse.

Landis.
 
Old 04-05-2015, 04:06 PM   #11
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
Middle mouse button (mostly the scroll thingy can be pressed as a mouse button, or try pushing left and right buttons together) pastes text on X. Works on any DE (obviously)
 
Old 04-06-2015, 08:34 AM   #12
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
VERY old thread people. The OP long ago probably solved this or moved on.

See the moderator's recommendation from many years ago for a suggestion.
 
Old 04-28-2015, 04:50 PM   #13
nodestorm
LQ Newbie
 
Registered: Apr 2015
Posts: 1

Rep: Reputation: Disabled
This thread is the first result when searching for "copy from xterm" and zzypty's and the subsequent answers were extremely useful even they were years late.

Putting the correct information into the first result should be encouraged.
 
Old 05-23-2020, 10:05 PM   #14
pgan
LQ Newbie
 
Registered: May 2020
Posts: 1

Rep: Reputation: Disabled
For Ubuntu 18.04

Highlight text from other application (copies text to primary buffer)

Shift + Insert worked as alternative to middle-mouse-click to paste into xterm
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy/paste help abk4523 Linux - Newbie 4 05-31-2005 06:29 AM
Copy Paste zaicheke Linux - Software 8 04-09-2005 04:45 AM
How can I do copy and paste in xterm? kaon Slackware 10 03-12-2005 03:12 PM
how to copy and paste acd copy cd paschim Linux - General 2 04-05-2004 09:25 AM
Copy/Paste jcb_dreamvsat Linux - Software 12 06-18-2003 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration