ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/01/30/14:02:11

From: ckgp!thomas AT uunet DOT uu DOT net
Subject: DJGPP question
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Thu, 30 Jan 92 13:23:34 EST
Status: O

Hi,

   I am working on a program which I do not wish to interrupt -- NEVER!
I guess I should say that I want to remove the trapping of the control-C
signal in go32. 
   I haven't looked at the source for go32 recently, but would assume that 
control-C is being trapped so that go32 and return to real mode and free
memory, etc... Can anyone tell me if I am on track or is there some other
reason that go32 must exit... Can I was also wondering if I can turn the
control-C off at the DOS level [BREAK=OFF]? or does go32 go beyond this....
   One last point on all of this... I am checking KBHIT before getting 
characters from the keyboard buffer... then using getkey() to take a character
out of the keyboard buffer... Has anyoneelse noticed that you have to hit
control-C about 4 or five times to get go32 to exit, then other times it 
works the first time... I haven't really studied this, but perhaps I could
capture it there ... (I think that this is wrong since CONTROL-C is a signal)

   So has anyone else altered go32 to not exit on control-c? 

================================================================================
Thank you,            ||  "Sol est invisiblis in hominibus, in terra vero
Michael Thomas        ||   visibilis, tamen ex uno et eodem sole sunt ambo"
(..uunet!ckgp!thomas) ||                    -- Theatrum Chemicum (Ursel, 1602)
================================================================================


- Raw text -


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