Console doesn't work correctly under anything else than cmd or mintty

Brian Inglis
Fri May 15 20:57:14 GMT 2020

On 2020-05-14 17:47, Takashi Yano via Cygwin wrote:
> On Thu, 14 May 2020 19:48:59 +0200
> Kacper Michajlow wrote:
>> On Thu, 14 May 2020 at 05:33, Takashi Yano <> wrote:
>>> I guess setting
>>> stty erase '^?'
>>> on the host <hostname> resolves this problem.
>> Nope, it still doesn't work. And '^?' default so it doesn't change
>> anything. Please note that in bash Backspace works fine, but in read
>> command (or any other program that ask input from stdin) it fails.
> Please check the result of
> xxd
> Ctrl-V Backspace Enter Ctrl-D

As xxd is an optional package, and od is in base coreutils package, you may want
to suggest e.g.

	$ od -atx1
	<Ctrl-V><Backspace><Enter><Ctrl-D> [four key entries]

and please post the output.

Alternatively cygcheck -k is intended for testing console key codes under cmd,
and if that could be helpful, ask for cmd to be run, then in that console
session, type:

	> cygcheck -k
	<Backspace>q [two key entries]

and please post the output e.g.

>cygcheck -k

This key check works only in a console window, _NOT_ in a terminal session!
Abort with Ctrl+C if in a terminal session.

Press 'q' to exit.
Released 1x VK: 0x0008 VS: 0x000e C: 0x0008 CTRL: -- -- -- -- NL -- -- -- --
Pressed  1x VK: 0x0051 VS: 0x0010 C: 0x0071 CTRL: -- -- -- -- NL -- -- -- --
Released 1x VK: 0x0051 VS: 0x0010 C: 0x0071 CTRL: -- -- -- -- NL -- -- -- --

Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in IEC units and prefixes, physical quantities in SI.]

More information about the Cygwin mailing list