From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16328 invoked by alias); 11 May 2005 07:07: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 15862 invoked from network); 11 May 2005 07:07:08 -0000 Received: from unknown (HELO legolas.inter.net.il) (192.114.186.24) by sourceware.org with SMTP; 11 May 2005 07:07:08 -0000 Received: from zaretski (IGLD-83-130-254-105.inter.net.il [83.130.254.105]) by legolas.inter.net.il (MOS 3.5.6-GR) with ESMTP id EIS53605 (AUTH halo1); Wed, 11 May 2005 10:05:18 +0300 (IDT) Date: Wed, 11 May 2005 07:13:00 -0000 From: "Eli Zaretskii" To: Mark Mitchell Message-ID: <01c555f7$Blat.v2.4$87c75d80@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: <20050510214218.GA8776@trixie.casa.cgf.cx> (message from Christopher Faylor on Tue, 10 May 2005 17:42:18 -0400) 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> <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> X-SW-Source: 2005-05/txt/msg00238.txt.bz2 > 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.