Lookup __djgpp_set_ctrl_c() and _go32_want_ctrl_break()
in the info-docs.
--gv
I had lots of problems getting CTRL-C to disable completely in DJGPP. Most
of the methods in the doc's seem to allow some CTRL-C's to pass through
every now and then, or they'll still display ^C on the screen, etc. The
method that has worked best for me:
signal(SIGQUIT,SIG_IGN);
signal(SIGINT,SIG_IGN);
signal(SIGABRT,SIG_IGN);
setcbrk(0);
HTH,
Rod Pemberton
Hi Gisle,Rod,
Thanks a lot for helping me out. Actually despite using the methods
you had suggested i am still facing issues
. When i press ctrl-c it still displays ^C on the screen. Is that
inevitable???
Thanks
Ahmad Firdaus
In which case write your own critical error handler. See Int 23h
(RBIL is a good starting point).
Pete
--
"We have not inherited the earth from our ancestors,
we have borrowed it from our descendants."
Sorry to hear that... It seems to work well for me.
There is a newsgroup for DJGPP: comp.os.msdos.djgpp. I didn't see a post
from you there.
Rod Pemberton
You might also try:
__djgpp_exception_toggle();
RP