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 _displaycursor( short mode );

Description:
    The _displaycursor function is used to establish whether the text cursor
    is to be displayed when graphics functions complete.  On entry to a
    graphics function, the text cursor is turned off.  When the function
    completes, the mode setting determines whether the cursor is turned back
    on.  The mode argument can have one of the following values:

    _GCURSORON
        the cursor will be displayed

    _GCURSOROFF
        the cursor will not be displayed


Returns:
    The _displaycursor function returns the previous setting for mode.

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

    main()
    {
        char buf[ 80 ];

        _setvideomode( _TEXTC80 );
        _settextposition( 2, 1 );
        _displaycursor( _GCURSORON );
        _outtext( "Cursor ON\n\nEnter your name >" );
        gets( buf );
        _displaycursor( _GCURSOROFF );
        _settextposition( 6, 1 );
        _outtext( "Cursor OFF\n\nEnter your name >" );
        gets( buf );
        _setvideomode( _DEFAULTMODE );
    }

Classification:
    PC Graphics

Systems:
    DOS, QNX

See Also:
    _gettextcursor, _settextcursor

See Also: _gettextcursor _settextcursor

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