Borland C++ reference

_setcursortype

raw OCR

Selects cursor appearance.

Defined in header <conio.h>

Syntax

#include <conio.h>
void _setcursortype(int cur_t);

Portability

DOSUNIXWindowsANSI CC++ only
■

Remarks

Sets the cursor type to

_NOCURSORTurns off the cursor
_SOLIDCURSORSoHd block cursor
NORMALCURSORNormal underscore cursor

Return value

None.

Example

#include <conio.h>

int main(void)
{
   /* display the normal cursor */
   cprintf("\n\rNormal Cursor:  ");
   getchO ;

   /* turn off the cursor */
   _setcursortype(_NOCURSOR);
   cprintf("\n\rNo Cursor     : ");
   getchO ;
   /* switch to a solid cursor */
   _setcursortype (_SOLIDCURSOR);
   cprintf("\n\rSolid Cursor  : ");
   getchO;

   /* switch back to the normal cursor  */
   _setcursortype (_NORMALCURSOR);
   cprintf("\n\rNormal Cursor:  ");
getchO
return

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.