LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 09-03-2004, 11:26 AM   #1
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Rep: Reputation: 30
How can I do copy and paste in xterm?


Hi all,

I am using XFCE with slackware 10.0 and I do not know how to do quick edit with the mouse under xterm. Everytime I have either export the result as text via pipe redirection and fire up GVIM to do copy and paste or simply capture the screen using GIMP.

Is there any SMARTER way to do quick edit?

Thanks.
 
Old 09-03-2004, 11:57 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Select the text in xterm with the mouse than middle click in another location (in a window text input, like a text editor window). You can also do reverse (select text in editor window and middle click on xterm)
 
Old 09-03-2004, 01:40 PM   #3
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,244

Rep: Reputation: 47
I think you have to have gpm running to do that though. if you don't have it set, try mouseconfig
 
Old 09-03-2004, 02:08 PM   #4
WMD
Member
 
Registered: Jul 2004
Location: Florida
Distribution: Slackware, Debian
Posts: 484

Rep: Reputation: 30
On a related note...how do you middle-click with a 2-button mouse? The wheel perhaps?
 
Old 09-03-2004, 02:21 PM   #5
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
WMD-

Yes. If you have a scroll wheel, the middle button is used by pressing down on the scroll wheel (not scroll down, press down).
 
Old 09-03-2004, 02:38 PM   #6
drawhla
Member
 
Registered: Sep 2003
Location: Buenos Aires, Argentina
Distribution: Debian Sarge
Posts: 72

Rep: Reputation: 15
one easier way is using the insert key to copy and shit+insert to paste in your xterm
works for me
 
Old 09-03-2004, 03:32 PM   #7
Mr.Elendig
LQ Newbie
 
Registered: Mar 2004
Location: Norway
Distribution: Arch and Gentoo
Posts: 6

Rep: Reputation: 0
Quote:
Originally posted by WMD
On a related note...how do you middle-click with a 2-button mouse? The wheel perhaps?
Enable 3button emulation and click both buttons at once.
 
Old 09-04-2004, 03:22 AM   #8
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
Thanks!

Both works great for me! The method told by Cedrik is more user-friendly to me, at least gvim know middle-clicking is pasting.

Quote:
one easier way is using the insert key to copy and shit+insert to paste in your xterm
works for me
I think copying is done on-the-fly while highlighting the text, so "insert key to copy" is not necessary.
Am I right?
 
Old 09-04-2004, 02:44 PM   #9
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
I believe so - sometimes the automatic copy can get a little frustrating but I think it's enabled by default :)
 
Old 03-12-2005, 11:25 AM   #10
dufferin
Member
 
Registered: Nov 2003
Location: Mt Dufferin
Distribution: Slackware 12.2
Posts: 72

Rep: Reputation: 15
Finally, after years of frustration having somethings copy/paste and some not
I read the post above suggesting using the mouse wheel to copy/paste.
This works perfectly . . .

Thanks
 
Old 03-12-2005, 04:12 PM   #11
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
just as a point of clarification (because i'm pedantic), a wheel mouse is actually not a 2-button mouse, it's a 5-button mouse. pushing down the wheel button is 3, and scrolling up or down is 4 or 5, respectively. your xorg.conf will reflect this with a line about 5 buttons, and one about z-axis mapping "4 5" or something, i forget the exact code. anyway, if you don't have a wheel mouse, but an actual 2-button mouse, you can paste by pushing both buttons at the same time (instead of the wheel mouse button).
 
  


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 in xterm wampfler Linux - Software 8 10-24-2014 04:47 AM
copy/paste help abk4523 Linux - Newbie 4 05-31-2005 07:29 AM
Copy Paste zaicheke Linux - Software 8 04-09-2005 05:45 AM
how to copy and paste acd copy cd paschim Linux - General 2 04-05-2004 10:25 AM
Copy/Paste jcb_dreamvsat Linux - Software 12 06-18-2003 03:23 AM


All times are GMT -5. The time now is 06:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration