delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/01/27/03:35:47

Date: Thu, 27 Jan 1994 09:01:40 +0100
From: terra AT diku DOT dk
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: suppressing ctrl-c

   From: peprbv <peprbv AT cfa0 DOT harvard DOT edu> (Bob Babcock)
   Organization: Kaleida Labs, Inc.
   References: <9401262243 DOT AA25341 AT cuba DOT Cayman DOT COM>
   Date: 27 Jan 94 02:56:16 GMT

   > but i still can't figure out how to suppress ctrl-c.

   Have you tried turning off control-c checking using int 21h, ah=33h,
   al=1, dl=0?  It may also help to set raw mode using function 44h.

As I remember it there's even a c function, setcbrk (), that can be used;
anyway that's what I did for Emacs.

When you are setting the Break mode (or the stdout mode) you should take
care to restore them before exiting; otherwise the next program may act
a little funny.

Morten Welinder
terra AT diku DOT dk

- Raw text -


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