delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/23/20:39:32

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-AuditID: 0a141038-0000078c00000c6c-40-46f7072d625d
MIME-Version: 1.0
Subject: some rxvt patches
Date: Mon, 24 Sep 2007 10:39:07 +1000
Message-ID: <A521CED2010C244BBDC949DEDF00DCE2E57711@sydexchange2.vignette.com>
From: "Robinson, Mark" <Mark DOT Robinson AT vignette DOT com>
To: <cygwin AT cygwin DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

------_=_NextPart_001_01C7FE43.4F799802
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

howdy y'all

I have scratched an itch w.r.t. rxvt which may be of interest to
denizens of this list.

Specifically:

1)  a new parameter "-cd directory" which starts rxvt in the given
directory.  On windoze this allows you to set up a context menu item in
explorer (like chere) that: (a) does away with all the usual shenanigans
involved in cd'ing in a batch file to the correct directory before
starting rxvt; (b) also works on networked shares, e.g. '\\host\share'.

The registry entry is now simply:

REGEDIT4
[HKEY_CLASSES_ROOT\Folder\shell\Shell...\command]
@=3D"c:\\cygwin\\bin\\rxvt.exe -cd \"%1\""

2)  a new parameter "-swapButtons" (aka "-bs" (since "sb" was taken))
that swaps the middle and right mouse buttons thus making life a little
easier for those folks with 2-button mice (and, no, I don't consider a
wheel that squirms while you click it as a viable button).

3)  some enhancements to the UNSHIFTED_SCROLLKEYS scrolling:  when the
PGUP key is pressed rxvt scrolls up by a page and remembers that it is
in key-scrolling mode.  Now pressing any of UP, DN, HOME, END, PGUP and
PGDN work as expected.  The END key, or any other key apart from those
listed above, quits the key-scrolling mode.


The attached patches are against rxvt-20050409-7.

Whaddaya think?

cheers
mark
=20

--
Mark Robinson=20=20=20
Consultant
Vignette Professional Services=20
+61 2 9455 5317

"Neither," said Feynman helping himself to cake, "We represent the
Physics Department."=20

------_=_NextPart_001_01C7FE43.4F799802
Content-Type: application/octet-stream;
	name="rxvt.cygwin.patch"
Content-Transfer-Encoding: base64
Content-Description: rxvt.cygwin.patch
Content-Disposition: attachment;
	filename="rxvt.cygwin.patch"

LS0tIHNyYy9jb21tYW5kLmMubWRyCTIwMDctMDktMTcgMDk6MTk6MjguODc1
MDAwMDAwICsxMDAwCisrKyBzcmMvY29tbWFuZC5jCTIwMDctMDktMTcgMTc6
NDQ6NDcuNjg3NTAwMDAwICsxMDAwCkBAIC01Miw2ICs1MiwxOSBAQAogCiAv
Ki0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0qLwogCisvKnt7eyBTd2FwIG1p
ZGRsZSBhbmQgcmlnaHQgbW91c2UgYnV0dG9ucyAqLworLyogSU5UUFJPVE8g
Ki8KK1hCdXR0b25FdmVudCAqCityeHZ0X3N3YXBfYnV0dG9ucyhyeHZ0X3Qg
KnIsIFhCdXR0b25FdmVudCAqZXYpCit7CisgICAgaWYgKHItPk9wdGlvbnMg
JiBPcHRfc3dhcEJ1dHRvbnMpCisJaWYgKGV2LT5idXR0b24gPT0gQnV0dG9u
MikKKwkgICAgZXYtPmJ1dHRvbiA9IEJ1dHRvbjM7CisJZWxzZSBpZiAoZXYt
PmJ1dHRvbiA9PSBCdXR0b24zKQorCSAgICBldi0+YnV0dG9uID0gQnV0dG9u
MjsKKyAgICByZXR1cm4gZXY7Cit9CisKIC8qe3t7IENvbnZlcnQgdGhlIGtl
eXByZXNzIGV2ZW50IG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wogI2RlZmluZSBPcHRfUmV2ZXJzZQkJKDFMVTw8MzAp
CiAjZGVmaW5lIE9wdF9Cb29sZWFuCQkoMUxVPDwzMSkKLS0tIHNyYy94ZGVm
YXVsdHMuYy5tZHIJMjAwNy0wOS0xNyAwOToxOTozOS45Njg3NTAwMDAgKzEw
MDAKKysrIHNyYy94ZGVmYXVsdHMuYwkyMDA3LTA5LTE3IDE2OjQ4OjA4LjM1
OTM3NTAwMCArMTAwMApAQCAtMzE0LDYgKzMxNCw4IEBACiAgICAgUlNUUkco
UnNfYWNzX2NoYXJzLCAiYWNzQ2hhcnMiLCAic3RyaW5nIiksCiAjZW5kaWYJ
CQkJLyogQUNTX0FTQ0lJICovCiAgICAgUlNUUkcoUnNfYW5zd2VyYmFja3N0
cmluZywgImFuc3dlcmJhY2tTdHJpbmciLCAic3RyaW5nIiksCisgICAgU1RS
RyhSc19jaGFuZ2VEaXJlY3RvcnksIE5VTEwsICJjZCIsICJkaXJlY3Rvcnki
LCAiY2hhbmdlIGRpcmVjdG9yeSIpLAorICAgIEJPT0woUnNfc3dhcEJ1dHRv
bnMsICJzd2FwQnV0dG9ucyIsICJicyIsIE9wdF9zd2FwQnV0dG9ucywgInN3
YXAgbWlkZGxlIGFuZCByaWdodCBidXR0b25zIiksCiAgICAgSU5GTygiZSIs
ICJjb21tYW5kIGFyZyAuLi4iLCAiY29tbWFuZCB0byBleGVjdXRlIikKIH07
CiAK


------_=_NextPart_001_01C7FE43.4F799802
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
------_=_NextPart_001_01C7FE43.4F799802--

- Raw text -


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