You are not logged in.

#1 2014-04-19 18:21:48

supereater14
Member
Registered: 2013-03-07
Posts: 5

Copy-Paste not working in xterm?

I'm using KDE and often have to copy-paste between firefox, medit or similar and xterm, but nothing seems to work. ctrl+v, ctrl+c, ctrl+shift+c, ctrl+shift+v, none of them seem to work, all are captured by bash, so I get a ^V in the terminal window. Some sites I have been to have suggested using the middle mouse button, but I am using a laptop trackpad, so that's not an option and I prefer to avoid using the mouse besides. Any suggestions on how to get copy-paste working are welcome.

Offline

#2 2014-04-19 18:44:19

teckk
Member
Registered: 2013-02-21
Posts: 590

Re: Copy-Paste not working in xterm?

You can use 3 button emulation.

You an add to /etc/X11/xorg.conf.d/10-evdev.conf

Section "InputClass"
        Identifier "evdev pointer catchall"
	Option "Emulate3Buttons" "True"
	Option "Emulate3Timeout" "50"        
	MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"

       
Then highlighting any text will put it on the clipboard, right/left click together=middle click to paste.

Offline

#3 2014-04-19 19:16:03

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Copy-Paste not working in xterm?

The wiki has a good article on this.

tl;dr:

ewaller$@$odin ~ 1005 %pacman -Qs urxvt-perls
local/urxvt-perls-git 104.adacf79-1
    Muennich's Perl extensions for the rxvt-unicode terminal emulator
ewaller$@$odin ~ 1006 %cat .Xdefaults        
URxvt.depth: 32
URxvt.background: rgba:0000/0000/0000/d000
URxvt.urlLauncher:      /usr/bin/chromium
URxvt.matcher.button:   1 
URxvt.perl-ext-common: default,clipboard
URxvt.font: xft:Droid Sans Mono Dotted:size=9
URxvt.cursorBlink: True
URxvt.cursorUnderline: True
URxvt.geometry: 80x48
URxvt.foreground: rgb:ffff/ffff/ffff
Xcursor.theme: whiteglass
URxvt.keysym.M-c:   perl:clipboard:copy
URxvt.keysym.M-v:   perl:clipboard:paste
URxvt.keysym.M-C-v: perl:clipboard:paste_escaped

ewaller$@$odin ~ 1007 %

Or, you can use (IIRC) shift-Insert and Ctrl-Insert for copy and paste (maybe its vise-versa, maybe there is an alt key required -- I don't remember)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2014-04-19 23:27:34

mtello17
Member
Registered: 2014-03-22
Posts: 34

Re: Copy-Paste not working in xterm?

I'd love to do what teck suggested, but it has not worked for me, any ideas?

Offline

#5 2014-04-20 00:54:01

supereater14
Member
Registered: 2013-03-07
Posts: 5

Re: Copy-Paste not working in xterm?

ewaller wrote:

you can use (IIRC) shift-Insert and Ctrl-Insert for copy and paste (maybe its vise-versa, maybe there is an alt key required -- I don't remember)

Shift-insert works, thanks!

Offline

#6 2014-04-20 08:27:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Copy-Paste not working in xterm?

ewaller wrote:

The wiki has a good article on this.

https://wiki.archlinux.org/index.php/Xt … _and_paste and the folowing sections.

ewaller wrote:

tl;dr:

ewaller$@$odin ~ 1005 %pacman -Qs urxvt-perls
local/urxvt-perls-git 104.adacf79-1
    Muennich's Perl extensions for the rxvt-unicode terminal emulator

+1 for urxvt :-)

supereater14, please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309


@mtello17
Did you restart the X server?

Offline

#7 2014-04-20 15:27:52

mtello17
Member
Registered: 2014-03-22
Posts: 34

Re: Copy-Paste not working in xterm?

yep, I shut down my computer, and restarted

Offline

#8 2014-04-20 18:31:14

Jeroen)Mathon
Member
From: Netherlands
Registered: 2013-08-29
Posts: 82

Re: Copy-Paste not working in xterm?

I also recommencement you to try terminator as well.

Offline

#9 2014-04-23 23:31:47

mtello17
Member
Registered: 2014-03-22
Posts: 34

Re: Copy-Paste not working in xterm?

tmux is a lot better, can be used over ssh

Offline

Board footer

Powered by FluxBB