Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <graph.h>
    short _FAR _gettextcursor( void );

Description:
    The _gettextcursor function returns the current cursor attribute, or
    shape.  The cursor shape is set with the  _settextcursor function.  See
    the  _settextcursor function for a description of the value returned by
    the _gettextcursor function.

Returns:
    The _gettextcursor function returns the current cursor shape when
    successful; otherwise, (-1) is returned.

Example:
    #include <conio.h>
    #include <graph.h>

    main()
    {
        int old_shape;

        old_shape = _gettextcursor();
        _settextcursor( 0x0007 );
        _outtext( "\nBlock cursor" );
        getch();
        _settextcursor( 0x0407 );
        _outtext( "\nHalf height cursor" );
        getch();
        _settextcursor( 0x2000 );
        _outtext( "\nNo cursor" );
        getch();
        _settextcursor( old_shape );
    }

Classification:
    PC Graphics

Systems:
    DOS, QNX

See Also:
    _settextcursor, _displaycursor

See Also: _settextcursor _displaycursor

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson