Subject: Re: cut and paste from rxvt?
From: [email-masked] (Patrick J. Fay)

5 Feb 1998 22:44:49 -0800
Message-ID: <[email-masked]>
Reply-To: "Patrick J. Fay" <[email-masked]>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
To: [email-masked]
Cc: [email-masked]

Hello Arlindo,
I finally got cut and paste to work between rxvt's using the MIX X
server and twm/fvwm2. The problem was that I have a two button mouse
and cut/paste expects a 3 button mouse. Button1 (the left mouse) 
selects the text by highlighting it. Button2 ( the middle mouse)
inserts the text when/where it is released.
I can swap button2 with button3 with
 /usr/X11R6.3/bin/xmodmap -e 'pointer = 1 3 2'
(the xserver (xs) must be running). Now the right button 'inserts
the text'. I can reset it back to normal with:
 /usr/X11R6.3/bin/xmodmap -e 'pointer = 1 2 3'
This lets me cut and paste small sections of text between rxvt 
sessions. If I try to paste large section of text the 'paste into'
window hangs. (If I keep creating sessions and then hanging them
(20+ times) I get the "can't allocate tty" (or something like that) message
and launching rxvt fails until I reboot.)
I can paste large amounts into xclipboard with no problems
so I'm not sure what is going wrong here.

I modified my ~/.twmrc to let me swap mouse buttons with:
menu "defops" {
"Operations"    f.title
"Move"          f.move
"Size"          f.resize
"Minimize"      f.iconify
"Maximize"      f.fullzoom
"Raise"         f.raise
"Lower"         f.lower
"Tile"          f.menu "tile"
""              f.nop
"Focus"         f.focus
"Unfocus"       f.unfocus
"Show Iconmgr"  f.showiconmgr
"Hide Iconmgr"  f.hideiconmgr
""              f.nop
"R_But_Paste"           f.exec "xmodmap -e \"pointer = 1 3 2\""
"R_But_NoPaste"         f.exec "xmodmap -e \"pointer = 1 2 3\""
""              f.nop
"Kill Process"  f.menu "kill"
"Close Window"  f.delete
}

For my ~/.fvwm2rc:
######################## Menus ###################
AddToMenu RootMenu      "Root Menu"     Title
+                       "XTerm"         Exec exec xterm
+                       "Rxvt"          Exec exec rxvt
+                       "Right Button==Paste"           Exec exec xmodmap -e "pointer = 1 3 2"
+                       "Right ButtonRestore"           Exec exec xmodmap -e "pointer = 1 2 3"
+                       ""              Nop
+                       "Remote Logins" Popup Remote-Logins
+                       ""              Nop
+                       "Utilities"     Popup Utilities
+                       ""              Nop
+                       "Fvwm Modules"            Popup Module-Popup
+                       "Fvwm Window Ops"         Popup Window-Ops
+                       "Fvwm Simple Config Ops"  Popup Misc-Ops
+                       ""              Nop
+                       "Refresh Screen"   Refresh
+                       "Recapture Screen" Recapture
+                       ""              Nop
+                       "Exit Fvwm"     Popup Quit-Verify

Pat

Patrick Fay, Ph.D., Intel Corp.            email:   [email-masked]
Los Alamos National Lab                    wk:         (505) 665-9141
CTI M.S. B296                              fax:        (505) 667-5921
Los Alamos NM 87545    ASCI-RED http://www.acl.lanl.gov/~pfay/teraflop

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".