www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/19/06:50:45

Date: Sun, 19 Apr 1998 13:49:21 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Anshuman Pandey <apandey AT u DOT washington DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: [Q] Ctrl-C, Ctrl-Z, Ctrl-Break message disabling.
In-Reply-To: <Pine.OSF.3.96b.980416184556.252B-100000@saul1.u.washington.edu>
Message-ID: <Pine.SUN.3.91.980419134803.23362G-100000@is>
MIME-Version: 1.0

On Thu, 16 Apr 1998, Anshuman Pandey wrote:

> Is there a way to disable these messages and screen prints for being
> produced, such that if Ctrl-{n} is pressed nothing is printed and the
> program simply returns to the prompt?

Install a handler for the signal SIGINT (using the library function
`signal') and make your handler simply call `exit'.  See the library 
reference for details about using signals.

- Raw text -


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