_gettextcursor

Description

Gets the current cursor attribute.

#include <graph.h>

short __far _gettextcursor( void );

Remarks

The _gettextcursor function returns the current cursor attribute (i.e., the shape). This function works only in text video modes.

Return Value

The function returns the current cursor attribute, or –1 if an error occurs (such as a call to the function in a graphics mode).

Compatibility

Standards:None

16-Bit:DOS

32-Bit:None

See Also

_displaycursor, _grstatus, _settextcursor

Example

See the example for _settextcursor.