LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,472

Rep: Reputation: 154Reputation: 154
"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: 30
Select your text in Mozilla, then go to xterm and press the middle button of your mouse. That should do the trick
 
Old 12-30-2003, 02:50 PM   #5
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,472

Rep: Reputation: 154Reputation: 154
"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: 26,987
Blog Entries: 54

Rep: Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742
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)?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 09:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration