mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-05-06 11:46:09 +08:00
36 lines
728 B
HTML
36 lines
728 B
HTML
<h1>标准库函数 - clrscr</h1>
|
|
|
|
|
|
<p>原型:extern void clrscr(void);</p>
|
|
extern void ClearScreen(void);
|
|
|
|
<p>用法:#include <system.h></p>
|
|
|
|
<p>功能:清屏</p>
|
|
|
|
<p>说明:清除屏幕缓冲区及液晶显示缓冲区<br>
|
|
光标位置回到屏幕左上角。</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>相关函数:无
|
|
|