How can I exit Microsoft GW-BASIC, IBM BASICA, or other similar old dialects of BASIC?

前端 未结 4 1775
春和景丽
春和景丽 2021-01-12 13:12

Microsoft BASIC, GW-BASIC and BASICA all use a prompt that looks like this:

I can\'t figure out how to exit any of these. Typing END does not e

4条回答
  •  攒了一身酷
    2021-01-12 14:09

    GWBASIC and its clones (e.g., IBM's BASIC and BASICA) exited to the DOS prompt with the command system.

    Although redirection was possible even in early versions of MS-DOS/PC-DOS, the BASIC interpreter bypassed using the standard input and output streams, and had its own Ctrl-Break/Ctrl-C handler, so neither of those keystrokes would terminate the interpreter.
    The shell command started a fresh copy of the system command interpreter (usually COMMAND.COM), or executed a system command and then returned to BASIC, but did not remove the interpreter from memory.

提交回复
热议问题