From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26113 invoked by alias); 10 May 2005 19:48:13 -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 26017 invoked from network); 10 May 2005 19:48:05 -0000 Received: from unknown (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org with SMTP; 10 May 2005 19:48:05 -0000 Received: from zaretski (IGLD-83-130-254-105.inter.net.il [83.130.254.105]) by romy.inter.net.il (MOS 3.5.6-GR) with ESMTP id BEO06288 (AUTH halo1); Tue, 10 May 2005 22:46:36 +0300 (IDT) Date: Tue, 10 May 2005 20:05:00 -0000 From: "Eli Zaretskii" To: Mark Mitchell Message-ID: <01c55598$Blat.v2.4$baecd3c0@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: <42804E09.9060508@codesourcery.com> (message from Mark Mitchell on Mon, 09 May 2005 23:00:41 -0700) Subject: Re: PATCH: Use getche on Win32 Reply-to: Eli Zaretskii References: <200505092015.j49KFoPw028903@sethra.codesourcery.com> <01c55512$Blat.v2.4$85bf3480@zahav.net.il> <42804E09.9060508@codesourcery.com> X-SW-Source: 2005-05/txt/msg00226.txt.bz2 > Date: Mon, 09 May 2005 23:00:41 -0700 > From: Mark Mitchell > 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.