jc58+@andrew.cmu.edu (Johnny J. Chin) (11/11/88)
Does anyone know how to disable, both, Ctrl-C and Ctrl-Break during I/O? I know that that the CRT unit contains a flag (CheckBreak) which maybe set to FALSE so that standard I/O would not terminate on a Ctrl-C or Ctrl-Break. By standard I/O, I mean the screen (output) and the keyboard (input). The problem that I'm having is that Ctrl-C and Ctrl-Break terminates my program when the program is sending data to my printer. The Ctrl-C and Ctrl-Break also terminates my program if I declare stdin and stdout as follows: Assign(stdin,''); Assign(stdout,''); Reset(stdin); Rewrite(stdout); Does anyone know why? Does anyone have a solution? Thanks. (I guess I'm not that good at Turbo Pascal 4.0 after all.) -- J. Chin (a.k.a. Computer Dr.) ------------------------- Carnegie Mellon University ------------------------- 4730 Centre Avenue, Apt. #412 ARPAnet: Johnny.J.Chin@andrew.cmu.edu Pittsburgh, Pennslyvania 15213 BITnet: jc58@andrew.BITNET (412) 268-8936 UUCP: ...!harvard!andrew.cmu.edu!jc58 ------------------------------------------------------------------------------