如何清除屏幕而不必填充屏幕 [英] How can I clear the screen without having to fill it

查看:122
本文介绍了如何清除屏幕而不必填充屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在中断服务程序来帮助我清除终端的屏幕?可以在Windows上使用吗?

Does an interrupt service routine exist to help me clear the screen of the terminal? Will it work on windows?

推荐答案

通过BIOS设置图形模式(int 10h,AH = 0)将清除屏幕.

Setting a graphics mode through BIOS (int 10h with AH=0) will clear the screen.

通过BIOS向上或向下滚动屏幕(在AH = 6或7时为10h)也可以清除屏幕.

Scrolling the screen up or down through BIOS (int 10h with AH=6 or 7) can clear the screen as well.

这仅在可以调用BIOS服务功能的地方起作用.

This will only work where you can invoke BIOS service functions.

MSDOS始终可以正常工作.

MSDOS is where this will always work.

在Windows中,这仅在DOS应用程序中有效,并且Windows可以实际运行它们. Windows的64位版本完全不支持DOS应用程序,从Windows Vista开始甚至从32位版本的Windows开始,许多DOS应用程序也无法完全运行.

In Windows this will work only in DOS applications and if Windows can actually run them. 64-bit editions of Windows don't support DOS applications at all and starting with Windows Vista even in 32-bit editions of Windows many DOS apps don't work fully.

还请记住,如果DOS应用程序在Windows的窗口中运行,则只会清除该窗口,而不是整个屏幕.

Remember also that if a DOS application runs in a window in Windows, only that window will get cleared, not the entire screen.

这篇关于如何清除屏幕而不必填充屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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