mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-08 06:28:20 +08:00
31 lines
528 B
HTML
31 lines
528 B
HTML
<h1>标准库函数 - ClearScreen</h1>
|
||
<p>原型:extern void clrscr(void);<br>
|
||
extern void ClearScreen(void);</p>
|
||
<p>用法:#include <system.h></p>
|
||
<p>功能:清屏</p>
|
||
<p>说明:清除屏幕缓冲区及液晶显示缓冲区
|
||
<p>光标位置回到屏幕左上角。</p>
|
||
|
||
举例:
|
||
<pre><code class="language-c">
|
||
// clrscr.c
|
||
|
||
#include <system.h>
|
||
|
||
main()
|
||
{
|
||
clrscr();
|
||
textmode(0x00);
|
||
|
||
printf("Press a key");
|
||
getchar();
|
||
ClearScreen();
|
||
|
||
printf("Another Screen");
|
||
getchar();
|
||
return 0;
|
||
}
|
||
</code></pre>
|
||
相关函数:无
|
||
|