阅读(1584) (0)

cursor

2015-11-11 16:16:58 更新

 原型:extern void cursor(int mode);
             
 用法:#include <system.h>
 
 功能:设定光标形态
 
 说明:mode值含义如下:
       0x00:块状光标(默认)
       0x80:下划线光标
       其它值无意义
   
 举例:


     // cursor.c
     
     #include <system.h>
     main()
     {
       int c;
       clrscr();
       cursor(0x00);
       printf("press key to change cursor");
       
       getchar();
       cursor(0x80);
       
       getchar();
       return 0;
     }