delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/05/22:44:49

From: pfay AT acl DOT lanl DOT gov (Patrick J. Fay)
Subject: Re: cut and paste from rxvt?
5 Feb 1998 22:44:49 -0800 :
Message-ID: <Pine.SGI.3.96.980205004137.22630A-100000.cygnus.gnu-win32@bluemountain.acl.lanl.gov>
Reply-To: "Patrick J. Fay" <pfay AT acl DOT lanl DOT gov>
Mime-Version: 1.0
To: arlindo AT niteroi DOT gsfc DOT nasa DOT gov
Cc: gnu-win32 AT cygnus DOT com

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 AT co DOT intel DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019