如何退出Microsoft GW-BASIC,IBM BASICA或其他类似的BASIC老方言? [英] How can I exit Microsoft GW-BASIC, IBM BASICA, or other similar old dialects of BASIC?

查看:260
本文介绍了如何退出Microsoft GW-BASIC,IBM BASICA或其他类似的BASIC老方言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Microsoft BASIC BASICA 都使用如下所示的提示:

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

我不知道如何退出其中任何一个.键入END不会退出它们. EXITQUITQ Ctrl + C ,我能想到的所有其他内容也不起作用.

I can't figure out how to exit any of these. Typing END does not exit them. EXIT, QUIT, Q, Ctrl+C, and everything else that I can think of also does not work.

我敢肯定有办法做到这一点.我无法想象每个在DOS上使用BASICA的人都必须在每次想要退出开发环境时都重新启动计算机.

I'm sure there's a way to do this. I can't imagine everyone who used BASICA on DOS had to restart their machine every single time they wanted to exit the development environment.

那么,如何从旧的BASIC编辑器提示符下退出?

So, how do I exit from the old BASIC editor prompt?

推荐答案

GWBASIC及其克隆(例如,IBM的BASIC和BASICA)使用命令system退出到DOS提示符.

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

尽管即使在早期版本的MS-DOS/PC-DOS中也可以进行重定向,但是BASIC解释器使用标准的输入和输出流来绕过,并且具有自己的 Ctrl - Break / Ctrl - C 处理程序,因此这些击键都不会终止解释器.
shell命令启动了系统命令解释器(通常是COMMAND.COM)的新副本,或者执行了系统命令,然后返回到BASIC,但是没有从内存中删除该解释器.

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.

这篇关于如何退出Microsoft GW-BASIC,IBM BASICA或其他类似的BASIC老方言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆