Re: PATCH: Use getche on Win32

Eli Zaretskii
2005-05-10T19:48:13Z

> Date: Mon, 09 May 2005 23:00:41 -0700
> From: Mark Mitchell <mark@codesourcery.com>
> CC: bug-readline@gnu.org, gdb-patches@sources.redhat.com
>
> > What happens if you press one of the special keys, like Ctrl-C or the
> > arrow keys or PageDown? Does getche still DTRT?
>
> Ctrl-C shows up as code 3, despite the fact that the documentation says
> that you can't read Ctrl-C. The arrows and such are two-byte sequences;
> the first byte is 0xE0, while the second byte is a letter. For example,
> left-arrow is 0xE0 0x50.

That's what I expected.

> So, I'm not sure this entirely qualifies as "DTRT"

"DTRT" in this case means raise SIGINT when Ctrl-C is pressed and go
left one character when left-arrow is pressed.