This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH: Use getche on Win32
- From: "Eli Zaretskii" <eliz at gnu dot org>
- To: mark at codesourcery dot com
- Cc: bug-readline at gnu dot org, gdb-patches at sources dot redhat dot com
- Date: Tue, 10 May 2005 06:43:06 +0300
- Subject: Re: PATCH: Use getche on Win32
- References: <200505092015.j49KFoPw028903@sethra.codesourcery.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Mon, 9 May 2005 13:15:50 -0700
> From: Mark Mitchell <mark@codesourcery.com>
> Cc: gdb-patches@sources.redhat.com
>
> Windows console semantics are different from UNIX. If we just use
> "read" to read what the user's typing, we end up blocking until a
> newline is available, and even then there are some oddities. The
> easiest thing seems to be to use the special "getche" (short for "get
> character with echo") routine which does the right thing.
>
> Reviews?
What happens if you press one of the special keys, like Ctrl-C or the
arrow keys or PageDown? Does getche still DTRT?