uTools-Manuals/docs/c/cursor.html

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