This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cut and paste from rxvt?


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:   pfay@co.intel.com
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
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]