From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 453 invoked by alias); 10 May 2005 03:47:15 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 408 invoked from network); 10 May 2005 03:47:10 -0000 Received: from unknown (HELO legolas.inter.net.il) (192.114.186.24) by sourceware.org with SMTP; 10 May 2005 03:47:10 -0000 Received: from zaretski (IGLD-83-130-243-144.inter.net.il [83.130.243.144]) by legolas.inter.net.il (MOS 3.5.6-GR) with ESMTP id EIL46611 (AUTH halo1); Tue, 10 May 2005 06:45:47 +0300 (IDT) Date: Tue, 10 May 2005 06:01:00 -0000 From: "Eli Zaretskii" To: mark@codesourcery.com Message-ID: <01c55512$Blat.v2.4$85bf3480@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 CC: bug-readline@gnu.org, gdb-patches@sources.redhat.com In-reply-to: <200505092015.j49KFoPw028903@sethra.codesourcery.com> (message from Mark Mitchell on Mon, 9 May 2005 13:15:50 -0700) Subject: Re: PATCH: Use getche on Win32 Reply-to: Eli Zaretskii References: <200505092015.j49KFoPw028903@sethra.codesourcery.com> X-SW-Source: 2005-05/txt/msg00220.txt.bz2 > Date: Mon, 9 May 2005 13:15:50 -0700 > From: Mark Mitchell > 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?