delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/20/09:19:31

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: Thu, 20 Feb 2003 15:19:19 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: arrow keys under mc via SSH with PuTTY
Message-ID: <20030220141919.GF2467@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20030220133507 DOT 2A00 DOT HONG_LUCIFER AT hotmail DOT com> <wdtp0jcs4716$.dlg AT thorstenkampe DOT de>
Mime-Version: 1.0
In-Reply-To: <wdtp0jcs4716$.dlg@thorstenkampe.de>
User-Agent: Mutt/1.4i

On Thu, Feb 20, 2003 at 12:38:12PM +0100, Thorsten Kampe wrote:
> * Lucifer Hong (03-02-20 06:35 +0100)
> > I setup sshd in cygwin and use PuTTY to login.  Everything seems going
> > well.  But when I start mc(GNU Midnight Commander 4.5.55) and use
> > arrow keys to move the cursor bar among listed files, strange things
> > occured:
> > 
> > When I press down key, a 'B' charactor appears in the prompt line (the
> > line with a '$' at the most left) and cursor bar doesn't move. And when
> > I press up key, a 'A' appears instead. However, I still have some
> > chances (about 1 out of 10 tries) to move the cursor bar successfully.
> 
> Right and left cursor insert a 'C' and 'D'...
>  
> > I have tried exporting TERM=linux, but the annoying A/B's still remains. :(
> > 
> > If I use the cygwin.bat directly form the start menu and export
> > TERM=linux, mc works very well.

In this case, TERM should be set to "cygwin", though.  Setting it to
"linux" doesn't make sense (yeah, I did that, too, once, but...)

However, in case of using PuTTY, the question is, which terminal type
is PuTTY emulating?  Is it actually "linux" or is it "vt100" or some
other term?  You should find this in the PuTTY docs.  Set TERM to the
appropriate value and you should be done.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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