This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Use getche on Win32


> Date: Tue, 10 May 2005 17:42:18 -0400
> From: Christopher Faylor <me@cgf.cx>
> 
> >>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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]