delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/20/00:19:26

Date: Mon, 20 May 1996 07:07:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Don Karnage <dunder AT nyongwa DOT montreal DOT qc DOT ca>
Cc: djgpp AT delorie DOT com
Subject: Re: Ctrl-C arg
In-Reply-To: <DrM7Bo.9H1@nyongwa.montreal.qc.ca>
Message-Id: <Pine.SUN.3.91.960520070125.11333D@is>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019