delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/20/11:25:24

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Mon, 20 May 2002 10:24:58 -0500
From: David T-G <davidtg-cygwin AT justpickone DOT org>
To: "CygWin Users' List" <cygwin AT cygwin DOT com>
Subject: Re: Key mappings in ssh
Message-ID: <20020520152458.GC32649@justpickone.org>
References: <Pine DOT LNX DOT 4 DOT 44 DOT 0205201522110 DOT 31794-100000 AT viper DOT iasi DOT rdsnet DOT ro>
Mime-Version: 1.0
In-Reply-To: <Pine.LNX.4.44.0205201522110.31794-100000@viper.iasi.rdsnet.ro>
User-Agent: Mutt/1.3.99i

--s9fJI615cBHmzTOP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Rudy --

=2E..and then rudy AT viper DOT iasi DOT rdsnet DOT ro said...
%=20
% I have a problem using sshd on cygwin: the backspace key does not work as
% expected, for example in vi (inserts ^? ) and cat. To get it working I

Is this ssh-ing out of your cygwin box or into it?

In either case, the problem is a tty configuration mismatch between where
you are (ssh nnnnn) and where you're going (running the shell).

Use

  stty -a

to see how your current settings are (look particularly for "erase") and
then

  stty erase NN

to set it as you wish (say ^ and ? or perhaps ^ and h).

If you always send delete, then you can just put

  stty erase ^?

into your .profile (or .bash_profile or .bashrc or whatever it is if
you're coming back into your cygwin box; I haven't figured it out under
cygwin yet) and that will force the matter.

Another thing that folks sometimes do is whip up a simple script actually
named ctrl-h or ctrl-questionmark and put the relevant stty commands
in there; when you hit the backspace key at the prompt, you'll either
properly try to back up and do nothing or spit out a wonky character,
which the shell will interpret when you hit return and away you go :-)
I don't recommend it (these things should really be negotiated better,
and your term settings should be transparent) but it's a useful kludge.


=2E..
% Ideas?

HTH & HAND


%=20
%=20
% Thanks in advance,
% rudy


:-D
--=20
David T-G                      * It's easier to fight for one's principles
(play) davidtg AT justpickone DOT org * than to live up to them. -- fortune cookie
(work) davidtgwork AT justpickone DOT org
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!


--s9fJI615cBHmzTOP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE86RVKGb7uCXufRwARAtIgAJ9Ov2PbP0vPqijlCaRZR8sgK5SouwCeKKcG
bVmpA18k2s2uYfoERerXCZQ=
=a/U5
-----END PGP SIGNATURE-----

--s9fJI615cBHmzTOP--

- Raw text -


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