ANSI C中的屏幕清除 [英] screen clearing in ANSI C

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

问题描述

大家好!

有没有人知道,如果可以用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

推荐答案

Leslie Kis-Adam写道:
Leslie Kis-Adam wrote:

大家好!

有谁知道,如果它可以在ANSI C中清除屏幕吗?
Hi everyone!
Does anyone know, if it is possible to clear the screen in ANSI C?



否,屏幕是特定于平台的,甚至可能不存在。


-

Ian Collins。

No, "screens" are platform specific and may not even exist in many.

--
Ian Collins.




Leslie Kis-Adam写道:

Leslie Kis-Adam wrote:

大家好!

有没有人知道,如果可能的话在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



printf(" \ 033 [2J"];


应该做的工作,它是清晰屏幕的ansi代码

printf(" \033[2J");

should do the work, it''s an ansi code for clear screen


st ****** @ gmail.com 说:

>

Leslie Kis-Adam写道:
>
Leslie Kis-Adam wrote:

>大家好!
有没有人知道,如果有可能在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



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
http://www.cpax.org.uk

电子邮件: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中的屏幕清除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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