2007-02-17

Cygwin rxvt copy & paste

With a 3-button mouse, Cygwin rxvt acts the way it would under X. Use mouse button 1 (usually the left mouse button) to mark text. Rxvt automatically puts the marked text in the copy/paste buffer. Click mouse button 2 (the middle mouse button) to paste text at the cursor position.

My laptop has only two mouse buttons. There is no middle button, so there is no obvious way to paste in rxvt. MikeyMcKay points out that you can use Shift Mouse 1 (Shift+LeftMouseButton) to paste into rxvt. Thanks, Mikey.

More authoritatively, from the rxvt man page:

TEXT SELECTION AND INSERTION
The behaviour of text selection and insertion mechanism is similar to
xterm(1).

Selection:
Left click at the beginning of the region, drag to the end of
the region and release; Right click to extend the marked region;
Left double-click to select a word; Left triple-click to select
the entire line.

Insertion:
Pressing and releasing the Middle mouse button (or Shift-Insert)
in an rxvt window causes the current text selection to be
inserted as if it had been typed on the keyboard.

As an added bonus, Shift-Insert works in Emacs, too.

3 comments:

Anonymous said...

Crystalclear explanation, simple and very accurate, refering to the original design document (man rxvt), this is beatifully helpfull !!
Thanks

mzieg said...

Thanks a million! I was sitting in a hotel without a mouse, trying to figure out how to get some useful work done...

Anonymous said...

so good, took me more than half an hour to find this explanation. --help didn't help me nothing at all. YOU DID

LinkWithin

Related Posts with Thumbnails