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

佐手、 提交于 2019-12-01 06:00:45
Jeff Zeitlin

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.

Usually for those command line editors Ctl-Z would do the trick since it sends the EOF character and thus signal terminating input.

If that doesn't do it, try typing system

According to the manual linked by paulsm4, CTRL-BREAK while output is being redirected will exit BASIC. It also says the SHELL command returns to the MS-DOS command shell. (On the original IBM PC, the BASIC was in ROM, and therefore always resident in memory.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!