_setcursortype
raw OCR
Selects cursor appearance.
Defined in header <conio.h>
Syntax
#include <conio.h>
void _setcursortype(int cur_t);
Portability
| DOS | UNIX | Windows | ANSI C | C++ only |
|---|---|---|---|---|
| ■ |
Remarks
Sets the cursor type to
| _NOCURSOR | Turns off the cursor |
| _SOLIDCURSOR | SoHd block cursor |
| NORMALCURSOR | Normal 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.
Stable link: /3.1/conio.h/_setcursortype/
· short form /3.1/_setcursortype/