LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 06-08-2011, 04:12 AM   #1
Mr. Alex
Member
 
Registered: May 2010
Distribution: Arch
Posts: 859

Rep: Reputation: Disabled
Urxvt - how to copy text from it?


http://jhm.cotren.net/node/325

Quote:
To copy text from an rxvt terminal simply drag the cursor over the region of text you want to select with the mouse while holding the left button down. Selected text will be highlighted and available in the clipboard for pasting into other applications via Ctrl-v.
It doesn't work for me. Help me please to configure it.
If not this, I would like to copy like in gnome-terminal - select text and hit Ctrl+Ins.
As for now - when I select text and hit Ctrl+Ins, urxvt outputs "^" and doesn't copy anything.

Last edited by Mr. Alex; 06-08-2011 at 04:13 AM.
 
Old 06-08-2011, 04:40 AM   #2
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Arch
Posts: 1,645
Blog Entries: 22

Rep: Reputation: 216Reputation: 216Reputation: 216
Quote:
Selected text will be highlighted and available in the clipboard
Hmm, should'nt you hit Ctrl-C first? Dunnow, that's my first idea here...of course, rxvt emulates the VT102 terminal...did that handle Copy-n-Paste?
Loose shreds of thoughts...

Thor
 
Old 06-08-2011, 05:00 AM   #3
Mr. Alex
Member
 
Registered: May 2010
Distribution: Arch
Posts: 859

Original Poster
Rep: Reputation: Disabled
Ctrl+C just gives me new PS1, it doesn't copy text.
 
Old 06-08-2011, 08:35 AM   #4
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 131

Rep: Reputation: 25
On a terminal/terminal emulator Ctrl-C sends a signal to kill the process running, so it will not copy anything. Selecting the text with your mouse and middle click while the text is still selected (marked). Are you shure this doesn't work? It works for me even in no GUI mode, whith gpm running.

Last edited by segmentation_fault; 06-08-2011 at 08:35 AM. Reason: Typo
 
1 members found this post helpful.
Old 06-08-2011, 10:30 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Slackware 13.37, Debian Squeeze
Posts: 7,987
Blog Entries: 25

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
In a default installation of urxvt the quote in the OP is not correct. Selecting text in urxvt by left button dragging copies it to the X PRIMARY buffer; Control+V in most desktop GUI programs copies the contents of the X CLIPBOARD buffer. There is a discussion of configuring urxvt (including configuring copy and paste to behave in ways that integrate readily with most desktop programs) in this LQ thread.
 
Old 06-08-2011, 11:40 AM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707
Quote:
Originally Posted by catkin View Post
In a default installation of urxvt the quote in the OP is not correct. Selecting text in urxvt by left button dragging copies it to the X PRIMARY buffer; Control+V in most desktop GUI programs copies the contents of the X CLIPBOARD buffer.
You can paste from the "primary buffer" using the middle mouse button (and it's not just in urxvt, selecting text anywhere works that way). It's a very convenient feature.
 
1 members found this post helpful.
Old 06-08-2011, 04:08 PM   #7
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Arch
Posts: 1,645
Blog Entries: 22

Rep: Reputation: 216Reputation: 216Reputation: 216
@ segmentation_fault

Quote:
On a terminal/terminal emulator Ctrl-C sends a signal to kill the process running, so it will not copy anything.
Thanks, I did'nt know that...
 
Old 06-08-2011, 11:11 PM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Slackware 13.37, Debian Squeeze
Posts: 7,987
Blog Entries: 25

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
Quote:
Originally Posted by MTK358 View Post
You can paste from the "primary buffer" using the middle mouse button (and it's not just in urxvt, selecting text anywhere works that way). It's a very convenient feature.
When using a two button mouse, the middle mouse button can be simulated by pressing both buttons together. On some mice the scroll wheel can be clicked as a middle button.
 
  


Reply

Tags
rxvt, urxvt


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy text from vmware from linux text terminal to word document in windows? meandsushil Linux - Newbie 40 01-12-2011 06:06 AM
[SOLVED] Able to Copy Text from uneditable Text Boxes(JTextfields) in Linux harry8potter Linux - Software 5 09-09-2010 06:51 AM
[SOLVED] copy and paste text among text documents in Linux ethereal1m Linux - Newbie 5 03-28-2010 03:14 AM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM


All times are GMT -5. The time now is 01:46 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
Open Source Consulting | Domain Registration