public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Line editing not working in Cygwin apps on NT4.0 console
@ 2001-11-20  7:18 Tom Porcher
  2001-11-20 16:03 ` Gerrit P. Haase
  2001-11-29 14:23 ` Tom Porcher
  0 siblings, 2 replies; 4+ messages in thread
From: Tom Porcher @ 2001-11-20  7:18 UTC (permalink / raw)
  To: cygwin

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.

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.

I had been running Cygwin B20 and this problem does not occur with the apps that
come with that package.

I can run "cat" from the NT Start->Run... dialog and cat will still not have line
editing.  I would have to presume that there's some setting or configuration for
the Cygwin DLL which I need to change to make this work.  Does anyone know of
any settings which could possibly cause this behavior?

Thanks!
                  --Tom Porcher

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Line editing not working in Cygwin apps on NT4.0 console
  2001-11-20  7:18 Line editing not working in Cygwin apps on NT4.0 console Tom Porcher
@ 2001-11-20 16:03 ` Gerrit P. Haase
  2001-11-30  3:12   ` Gerrit P. Haase
  2001-11-29 14:23 ` Tom Porcher
  1 sibling, 1 reply; 4+ messages in thread
From: Gerrit P. Haase @ 2001-11-20 16:03 UTC (permalink / raw)
  To: Tom Porcher; +Cc: cygwin

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.haase@convey.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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Line editing not working in Cygwin apps on NT4.0 console
  2001-11-20  7:18 Line editing not working in Cygwin apps on NT4.0 console Tom Porcher
  2001-11-20 16:03 ` Gerrit P. Haase
@ 2001-11-29 14:23 ` Tom Porcher
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Porcher @ 2001-11-29 14:23 UTC (permalink / raw)
  To: cygwin

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.

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.

I had been running Cygwin B20 and this problem does not occur with the apps that
come with that package.

I can run "cat" from the NT Start->Run... dialog and cat will still not have line
editing.  I would have to presume that there's some setting or configuration for
the Cygwin DLL which I need to change to make this work.  Does anyone know of
any settings which could possibly cause this behavior?

Thanks!
                  --Tom Porcher

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Line editing not working in Cygwin apps on NT4.0 console
  2001-11-20 16:03 ` Gerrit P. Haase
@ 2001-11-30  3:12   ` Gerrit P. Haase
  0 siblings, 0 replies; 4+ messages in thread
From: Gerrit P. Haase @ 2001-11-30  3:12 UTC (permalink / raw)
  To: Tom Porcher; +Cc: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1936 bytes --]

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.haase@convey.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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-11-30 11:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-20  7:18 Line editing not working in Cygwin apps on NT4.0 console Tom Porcher
2001-11-20 16:03 ` Gerrit P. Haase
2001-11-30  3:12   ` Gerrit P. Haase
2001-11-29 14:23 ` Tom Porcher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).