清除屏幕从特定行直到C控制台结束 [英] Clear Screen from Specific line up to End in C Console

查看:114
本文介绍了清除屏幕从特定行直到C控制台结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

最近我开始使用C语言编写代码(我的专长是c#和php,我是c命令的新手)。

我正在寻找一些功能从屏幕'x'清除屏幕直到屏幕结束我只是找到

hi all,
recently i started coding in C language (my specialty is c# and php and i am new to c commands).
Im looking for some functions to clear screen from line 'x' up to end of screen and i just find

system( "cls" );

做我的建议,但从第一行到结束(整个屏幕)。

所以任何推荐的解决方案都可以接受并且感谢提前..;)



-regards

amir nasrollahi

that do my propose but from first line up to end (whole of screen).
so any recommended solution acceptable and thanks in advance.. ;)

-regards
amir nasrollahi

推荐答案

请参见 http://www.robvanderwoude.com/ansi.php [ ^ ]您可以尝试使用的转义序列。但是,您可能会发现在更好地控制屏幕的简单Windows应用程序上工作会更好。
See http://www.robvanderwoude.com/ansi.php[^] for the escape sequences that you can try. However, you may find it better to work on a simple Windows application where you have better control of the screen.


这篇关于清除屏幕从特定行直到C控制台结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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