Date: Sun, 19 Apr 1998 13:49:21 +0300 (IDT) From: Eli Zaretskii To: Anshuman Pandey cc: djgpp AT delorie DOT com Subject: Re: [Q] Ctrl-C, Ctrl-Z, Ctrl-Break message disabling. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.