uTools-Manuals/docs/c/cursor.html
2019-04-08 23:22:26 +08:00

30 lines
597 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1>标准库函数 - cursor</h1>
<pre>原型extern void cursor(int mode);</pre>
<pre>用法:#include &lt;system.h></pre>
<pre>功能:设定光标形态</pre>
<pre>说明mode值含义如下0x00块状光标默认; 0x80下划线光标; 其它值无意义</pre>
举例:
<pre>
// cursor.c
#include &lt;system.h>
main()
{
int c;
clrscr();
cursor(0x00);
printf("press key to change cursor");
getchar();
cursor(0x80);
getchar();
return 0;
}
</pre>
相关函数:无