delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/16/11:27:17

Date: Fri, 16 Apr 1999 12:26:31 -0400
Message-Id: <199904161626.MAA24507@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <371760E3.181FDF22@lps.u-psud.fr> (message from taupin on Fri, 16
Apr 1999 18:10:11 +0200)
Subject: Re: Disabling ^C
References: <371760E3 DOT 181FDF22 AT lps DOT u-psud DOT fr>
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

>   How can I disable ^C to kill a program?

Try setmode(fileno(stdin), O_BINARY) first - that's probably what you
really want.  There's also setcbrk() with controls Ctrl-Break.

- Raw text -


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