From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26439 invoked by alias); 11 May 2005 07:13:17 -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 26355 invoked from network); 11 May 2005 07:13:09 -0000 Received: from unknown (HELO mail.codesourcery.com) (65.74.133.9) by sourceware.org with SMTP; 11 May 2005 07:13:09 -0000 Received: (qmail 26277 invoked from network); 11 May 2005 07:13:08 -0000 Received: from localhost (HELO ?192.168.0.5?) (mitchell@127.0.0.1) by mail.codesourcery.com with SMTP; 11 May 2005 07:13:08 -0000 Message-ID: <4281B073.9010806@codesourcery.com> Date: Wed, 11 May 2005 07:17:00 -0000 From: Mark Mitchell User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: Eli Zaretskii CC: bug-readline@gnu.org, gdb-patches@sources.redhat.com Subject: Re: PATCH: Use getche on Win32 References: <200505092015.j49KFoPw028903@sethra.codesourcery.com> <01c55512$Blat.v2.4$85bf3480@zahav.net.il> <42804E09.9060508@codesourcery.com> <01c55598$Blat.v2.4$baecd3c0@zahav.net.il> <428113E4.9090807@codesourcery.com> <01c5559e$Blat.v2.4$1b76ee60@zahav.net.il> <20050510203127.GA10559@nevyn.them.org> <20050510213821.GA8600@trixie.casa.cgf.cx> <20050510214218.GA8776@trixie.casa.cgf.cx> <01c555f7$Blat.v2.4$87c75d80@zahav.net.il> In-Reply-To: <01c555f7$Blat.v2.4$87c75d80@zahav.net.il> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-05/txt/msg00239.txt.bz2 Eli Zaretskii wrote: >>Date: Tue, 10 May 2005 17:42:18 -0400 >>From: Christopher Faylor >> >>>>Does Windows offer anything like appropriate job / pgrp semantics? >>>>That'd really surprise me. >>> >>>Windows does support CTRL-C and does have process groups. I don't know >>>how close the concept of a windows process group is to UNIX, though. >> >>Btw, there are other alternatives to using getche. You could just set >>the correct mode using SetConsoleMode. > > > Right, and judging by what MSDN has to say about this, it's precisely > what Mark needs to get Readline do on Windows what it does on > platforms that support termios and similar Posix functionalities. > > As for Ctrl-C, the same SetConsoleMode can evidently cause it to raise > SIGINT, as we want. Strangely, I'd looked at that before, but not fully comprehended. I'll experiment. ENABLE_PROCESSED_INPUT may, however, cause certain characters (like the arrow keys) never to reach readline, thereby preventing some of the key-binding magic. I'll try a few approaches, and report back. Thanks, -- Mark Mitchell CodeSourcery, LLC mark@codesourcery.com (916) 791-8304