HTBasic Help
×
Menu
Index

Cursor

 
int kbdcrt_cursor( int col, int line, int type );
 
Where:
 col  - alpha character column number
 line - alpha character row number
 type - cursor type  0=Normal, 1=Insert, 2=Off
 
Description
This routine erases the current cursor and places a new cursor at the specified character location. The values of col and line are the same as specified by PRINT TABXY(col,line). The return value is either a zero for no errors or an HTBasic error code.
 
Any action generated by HTBasic which affects the cursor will move the cursor back to its normal location. You may wish to trap all keyboard input with ON KBD while using this routine.
 
Example
int error;
error = kbdcrt_cursor( 1, 10, 0 );