Maarten van Leunen wrote:

> How can I make certain that a program stops with the touch of a key
> (like some programs do with Ctrl-C, Ctrl-D or Ctrl-Z) without all that
> mucking about in ncurses and setiostuff? Hmmm?

You don't need to do anything to make the above keys work. The
terminal driver automatically converts ^C to SIGINT and ^Z to SIGTSTP, 
and generates EOF in response to ^D.

If you want something other than the default behaviour for ^C and/or
^Z, then you will need to install suitable signal handlers.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to