VOGONS


Cannot use CTRL-PAUSE

Topic actions

First post, by wolfgang

User metadata
Rank Newbie
Rank
Newbie

I am trying to use QBASIC in DosBox. It works great, except I can't break an infinite loop. QBASIC provides the CTRL-PAUSE command while the program is running to stop the program, but this doesn't work in DosBox. I have tried to see if there is a keystroke already mapped to this by DosBox, but can't find anything. Any ideas?

Reply 2 of 5, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Most BASIC interpreters and compilers will recognize Ctrl-ScrollLock as a Break, because that was the Break key on PC XT-style keyboards.

Reply 3 of 5, by TeaRex

User metadata
Rank Member
Rank
Member
ripsaw8080 wrote:

Most BASIC interpreters and compilers will recognize Ctrl-ScrollLock as a Break, because that was the Break key on PC XT-style keyboards.

Maybe this should be in the README? Since using CTRL-SCRLK instead of CTRL-BREAK it is not exactly an obvious thing (to most people) and the question about CTRL-BREAK has been asked several times already.

tearex

Reply 4 of 5, by mr_bigmouth_502

User metadata
Rank Oldbie
Rank
Oldbie
TeaRex wrote:
ripsaw8080 wrote:

Most BASIC interpreters and compilers will recognize Ctrl-ScrollLock as a Break, because that was the Break key on PC XT-style keyboards.

Maybe this should be in the README? Since using CTRL-SCRLK instead of CTRL-BREAK it is not exactly an obvious thing (to most people) and the question about CTRL-BREAK has been asked several times already.

I second this.

Reply 5 of 5, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Various forms of BASIC recognize the keypress, but Ctrl-ScrollLock is not a generic substitute for Ctrl-Break. DOSBox does not implement true Break processing in its emulated BIOS and DOS. Not sure it's worth mentioning in the readme/manual when it pertains mostly to BASIC.