
BASICA: trapping ctrl-c and ctrl-break.
Quote:
> I have a BASICA program (GWBASIC actually, same difference) that I'd
> like to make able to trap ctrl-c and ctrl-break. In other words, I'd like for
> the program not to break when ctrl-c is typed at an input statement, and I'd
> like the program to be able to ask the user if he/she is certain about breaking
> out with ctrl-break. I already have an error handling routine (yes, I know
> about ON ERROR GOTO statements) but it doesn't seem to cover these.
> Anyone know what I'm talking about? :-) Thanks much.
Not sure this is possible in an interpretive environment. You _can_ turn
off Ctrl-Break checking with an interrupt call...
If the program isn't too long and complicated, you might consider porting
it to ASIC, which'll let you catch any keystrokes, AFAIR.
--
Douggie
sig in therapy, and doing well. Just don't mention the war...