Mail Archives: djgpp/1996/05/20/00:19:26
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.
- Raw text -