Date: Mon, 20 May 1996 07:07:00 +0200 (IST) From: Eli Zaretskii To: Don Karnage Cc: djgpp AT delorie DOT com Subject: Re: Ctrl-C arg In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 18 May 1996, Don Karnage wrote: > Is it possible not to generate any SIGINT errors whenever pressing CTRL-C ? > Its quite annoying. And my editor has 'emacs' keybindings, meaning I must > press ^X^C for exiting. Use the library function `__djgpp_set_ctrl_c'. When called with a zero argument, it will disable generation of SIGINT by ^C; with a non-zero argument, it enables it. C-Break still generates SIGINT even when ^C is not. When you switch stdin to binary mode, this is done automatically. Shouldn't you use binary reads on stdin in an Emacs-like editor? You can use `setmode' library function to do this.