Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: bruce.localnet: jbd set sender to jbd AT codemeta DOT com using -f Subject: Re: remapping Cygwin 'bash' readline functions to PC keys From: Bruce Dawson To: "Lee D. Rothstein" Cc: john mapoles , cygwin AT cygwin DOT com In-Reply-To: <5.2.0.9.0.20030220175313.130f5030@rogue.codemeta.com> References: <5 DOT 2 DOT 0 DOT 9 DOT 0 DOT 20030219135548 DOT 00aac350 AT rogue DOT codemeta DOT com> <5 DOT 2 DOT 0 DOT 9 DOT 0 DOT 20030220175313 DOT 130f5030 AT rogue DOT codemeta DOT com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-pmynbwbgcrr65A6OugEL" Date: 20 Feb 2003 23:02:36 -0500 Message-Id: <1045800156.1603.44.camel@bruce.localnet> Mime-Version: 1.0 --=-pmynbwbgcrr65A6OugEL Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I may be missing part of the conversation here, but so far as I know, rxvt is only useful if you're running a X server. (I don't have a cygwin system handy to be sure.) Lee: I don't think this applies to your problem. I may have put people off-track with my last message on this thread - because my comments only applies to users=20 running remotely or through a terminal server, and not=20 to cygwin systems. --Bruce On Thu, 2003-02-20 at 18:57, Lee D. Rothstein wrote: > re: using 'rxvt' to be able to discriminate > between ^ , etc. in > Cygwin 'bash' 'readline' >=20 > John Mapoles, et al., >=20 > Are you saying that I should try using use 'rxvt' > in a console window as the interface to *Cygwin*? >=20 > Remember, I'm not interfacing to another host when > I run 'bash', in this instance. 'bash' is *not* > remote. It's *not* running on *u*x. It's running > on the local W2K or WXP machine running Cygwin. >=20 > (BTW, I'm sorry if you knew this, but I've gotten > such strange responses from some folks to this > line of queries that I can't help but wonder how > many really understand what I'm asking.) >=20 > Can I only do that if I run the 'rxvt' server > (daemon) too? >=20 > And, if so, would I still be able to launch > windowed (GUI) Windows applications from a 'bash' > command prompt? >=20 > If this would actually work, what percentage of my > MPU, am I throwing down a rat hole? ;-) >=20 > If this were to work, wouldn't that mean that > 'rxvt' server or client was looking at the scan > codes? So 'rxvt' server operates at a lower > level than the console handler? >=20 > Or, is all of this a problem with the > implementation of the terminal (console) handler > (or, terminfo translator) in Cygwin? >=20 > Or, am I more confused than I thought I was? >=20 > BTW, running 'ssh' in a Cygwin window to a Linux > machine, does not fix the control/naked arrow key > discrimination problem and resetting the 'TERM' > environment variable on Cygwin to anything other > than 'Cygwin' generates errors in applications > like 'man' that use screen character cell control > and doesn't fix the problem for my terminal > window for the remote machine (I think). >=20 > See below. >=20 > Thanks, >=20 > Lee >=20 > At 2003-02-20 02:03 PM -0800, john mapoles wrote: > >Lee, >=20 > >This is very similar to a problem that I've had in > >Vim. I build a library of maps from the Vim actions > >to simpler actions, i.e. I like to map F4 to delete > >line ( F4 is usually ^[[[D on a windows box ). On > >most UNIX platforms things like right-arrow and > >control right-error are different. As you pointed out > >this is not so on a windows box. I've just begun to > >play with rxvt. This has the feel of a UNIX xterm but > >is also similar to a command window. But, rxvt uses a > >more robust map. On my machine I get: > > --> ^[[C > > ^--> ^[Oc > >rxvt can probably re-map any key by the correct choice > >of termcaps (something I do not know how to do). Try > >rxvt. >=20 > BTW, my guess is the problem is not the map. but > whether some level of console handler looks at > the character output from the keyboard rather than > the scan codes, and whether the Cygwin DLL writers > want to go down to the right level? >=20 > At any rate what is the local 'terminfo' database > on Cygwin for? ssh in? rxvt in? Incoming 'telnet' > traffic? >=20 > >jm =20 --=-pmynbwbgcrr65A6OugEL Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA+VaTc/TBScWXa5IgRAm6qAKCQ6fzZ2/hovQ/016QpXb2DhUhfnQCfR7GP +X75Rygm5O8xCtPQDgFK8FY= =x+xp -----END PGP SIGNATURE----- --=-pmynbwbgcrr65A6OugEL--