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/C++ v10.0 : C library - <b>synopsis:</b> 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.

See Also:
    _settextcursor, _displaycursor

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

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