home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!wtrlnd!contrast!postmaster
- From: johannes.beekhuizen@contrast.wlink.nl (Johannes Beekhuizen)
- Newsgroups: comp.lang.pascal
- Subject: Stopping Control-C... I though I was...
- Message-ID: <724379469.AA00753@contrast.wlink.nl>
- Date: Mon, 14 Dec 1992 16:27:28
- Sender: postmaster@contrast.wlink.nl
- Lines: 31
-
- Hello Don,
-
- On Sunday December 13 1992, Don Bontemps wrote to All:
-
- DB> I wrote an application program that I did not want the user to be able
- DB> to exit via pressing <control-C>. I included the "setcbreak := true"
- DB> line to my source code. This stops <control-C> but does not stop
- DB> <control-break> (ie: the break on the pause key). Can someone tell me
- DB> how to prevent <control-break> from doing this? Thanks.....!
-
- In my manual (Library Reference) it says:
- SetCBreak sets the state of Ctrl-Break checking in Dos. When off
- (false), Dos only checks for Ctrl-Break during I/O to console, printer or
- communications devices. When on (true), checks are made at every system call.
-
- Now, if you look in the Programmer's Guide, it says for CheckBreak:
- var CheckBreak : Boolean;
- When CheckBreak is True, pressing Ctrl-Break aborts the program when
- it next writes to the display. When CheckBreak is False, pressing Ctrl-Break
- has no effect.
-
- It's also clearly explained in the online help.
-
- Regards,
-
- Hans.
-
- fidonet 2:281/527.5
- yan-net 123:3183/0
- e-mail johannes.beekhuizen@contrast.wlink.nl
-
-