Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!ames!ncar!boulder!ccncsu!handel.CS.ColoState.Edu!hampton From: hampton@handel.CS.ColoState.Edu (thomas hampton) Newsgroups: comp.lang.pascal Subject: Re: disable ^C in Turbo Pascal Message-ID: <4210@ccncsu.ColoState.EDU> Date: 19 Feb 90 07:20:08 GMT References: <116500002@uxa.cso.uiuc.edu> <1990Feb12.192905.7805@uwasa.fi> Sender: news@ccncsu.ColoState.EDU Reply-To: hampton@handel.UUCP (thomas hampton) Organization: Colorado State University, Fort Collins, CO 80523 Lines: 27 In article <1990Feb12.192905.7805@uwasa.fi> ts@uwasa.fi (Timo Salmi LASK) writes: >In article <116500002@uxa.cso.uiuc.edu> bcs33424@uxa.cso.uiuc.edu writes: >> >> I've tried the break command under DOS, and the {C-}, {C+}, >> {$U-}, and the {$U+} (the book I'm using is very vague). With- >> out the control-C disabled, the program has no real effect. >> Is there something I missed? Is there another compiler directive > >CheckBreak := false; > setting checkbreak to false won't entirely work. Dos will still check for break durring I/O processes just not at any other time. Normally dos checks more often than only durring I/O. One way to dissable c-break is with the command "ctty filename" this will cause dos to check for c-break in filename instead of standard input(actually it changes standard I/O to filename). Add this command to the first line of your autoexec file. But be sure to add the command "ctty con" as the last line of your auto file. If you don't do this standard I/O becomes filename and it is then impossible to type at the keyboard. Also, you may have to spcifically write to "con" inside your program because standard I/O has been changed. Try it and find out I haven't used it myself so I'm not sure. Good luck let me know how it turns out. 8D Tom!