问题描述
大家好!
有没有人知道,如果可以用ANSI C清除屏幕?
如果是,那怎么样?
任何帮助都将不胜感激。
Laszlo Kis-Adam
< dfighter_AT-NOSPAM_freemail.hu
Hi everyone!
Does anyone know, if it is possible to clear the screen in ANSI C?
If it is,then how?
Any help would be appreciated.
Laszlo Kis-Adam
<dfighter_AT-NOSPAM_freemail.hu
推荐答案
否,屏幕是特定于平台的,甚至可能不存在。
-
Ian Collins。
No, "screens" are platform specific and may not even exist in many.
--
Ian Collins.
printf(" \ 033 [2J"];
应该做的工作,它是清晰屏幕的ansi代码
printf(" \033[2J");
should do the work, it''s an ansi code for clear screen
printf(" \ 033 [2J"];
应该做的工作,它是清晰屏幕的ansi代码
printf(" \033[2J");
should do the work, it''s an ansi code for clear screen
我将它包裹在一个主机中并在我的Linux机器上运行,但屏幕上没有明确的b
。甚至没有终端窗口被清除。
-
Richard Heathfield
Usenet是一个奇怪的地方 - dmr 29/7/1999
电子邮件:rjh在上述域名中, - www。
I wrapped it up in a main and ran it on my Linux box, but the screen didn''t
clear. Not even the terminal window cleared.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
这篇关于ANSI C中的屏幕清除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!