delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/30/06:14:41

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 30 Nov 2001 12:05:12 +0100
From: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
X-Mailer: The Bat! (v1.53t) Business
Reply-To: "Gerrit P. Haase" <cygwin AT cygwin DOT com>
Organization: convey Information Systems GmbH
X-Priority: 3 (Normal)
Message-ID: <1023901059.20011130120512@familiehaase.de>
To: Tom Porcher <porcher AT acm DOT org>
CC: cygwin AT cygwin DOT com
Subject: Re: Line editing not working in Cygwin apps on NT4.0 console
In-Reply-To: <3C06B4FA.694F1419@acm.org>
References: <3C06B4FA DOT 694F1419 AT acm DOT org>
MIME-Version: 1.0

Hallo Tom,

2001-11-30 11:59:15, du schriebst:

> I looked through the Archives and the FAQs and problems similar to this have
> been reported in the past.  I tried various combinations of TERM=ansi,
> TERM=cygwin, CYGWIN=tty, CYGWIN=notty but none of these seem to have corrected
> my problem.

 TERM=cygwin and CCYGWIN=tty is ok.
 
> I'm running Cygwin 1.3.5, NT 4.0 SP6a.

> The problem is that the Cygwin apps (cat, telnet, perl, etc.) do not allow
> command editing when run in a console window.  In particular, the Backspace
> key inserts a Ctrl-H, and the arrow keys move the cursor around and insert
> their escape sequences.  bash does not exhibit this behaviour, probably because
> it does its own line editing.

Hmmm, it works for me, I have set 'CYGWIN=tty ...' Be sure to set the CYGWIN
variable BEFORE starting a bash shell I have it as systemwide setting.

I have this in ~/.inputrc (Backspace is working for me so it is commented):
And this needs 'readline' to be installed! I don't know what exactly needs
to be installed else, I guess termcap (who knows?).

# This file is read by the 'readline' library
# (the library which bash uses for its command-
# line editing facility)

# Make Home work
"\e[7~": beginning-of-line
# Make End work
"\e[8~": end-of-line
# Make Delete work
"\e[3~": delete-char
# make Insert work
"\e[2~": paste-from-clipboard

# "\C-h": backward-delete-char
# "\C-?": backward-delete-char

-- 
convey Information Systems GmbH                   http://www.convey.de/
                                                  Vitalisstraße 326-328
Gerrit P. Haase                                   D-50933 Köln
gerrit DOT haase AT convey DOT de                            Fon: ++49 221 6903922


--
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