Syntax
int SetCursor( int shape );
Arguments
shape SC_NONE, SC_NORMAL, SC_INSERT, SC_SPECIAL1 or SC_SPECIAL2. NIL queries the current shape.
Return value
The previous cursor shape.
Description
Change the appearance of the text cursor at its current position. Use `SC_NONE` to hide it temporarily and restore the previous shape using the value returned by the call. `NIL` queries the shape, and other out-of-range values leave it unchanged. The driver's rendering determines the appearance of each shape.
Example
#include "xdev-wtui.h"
int main( void )
{
int previous = SetCursor( SC_INSERT );
DispOut( "Insert cursor", NULL );
Inkey( 0, NIL );
SetCursor( previous );
return 0;
}