mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-08 06:55:36 +08:00
30 lines
597 B
HTML
30 lines
597 B
HTML
<h1>标准库函数 - cursor</h1>
|
||
<pre>原型:extern void cursor(int mode);</pre>
|
||
<pre>用法:#include <system.h></pre>
|
||
<pre>功能:设定光标形态</pre>
|
||
<pre>说明:mode值含义如下:0x00:块状光标(默认); 0x80:下划线光标; 其它值无意义</pre>
|
||
|
||
举例:
|
||
<pre>
|
||
// cursor.c
|
||
|
||
#include <system.h>
|
||
|
||
main()
|
||
{
|
||
int c;
|
||
|
||
clrscr();
|
||
cursor(0x00);
|
||
printf("press key to change cursor");
|
||
|
||
getchar();
|
||
cursor(0x80);
|
||
|
||
getchar();
|
||
return 0;
|
||
}
|
||
</pre>
|
||
相关函数:无
|
||
|