Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>_displaycursor() cursor on/off on graphics exit</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _displaycursor()        Cursor on/off on graphics exit

 #include   <graph.h>

 short far _displaycursor( toggle );
  short toggle;     Cursor state

    The screen cursor is turned off at entry into each graphic routine.
    _displaycursor() determines whether the cursor is to be turned back
    on when the graphics routines are exited. The following manifest
    constants, defined in graph.h, select the state:

    Constant         Meaning
    -------------    ----------------------------------
    _GCURSORON       Cursor will be restored on exit
    _GCURSOROFF      Cursor will be left off on exit

       Returns:     _displaycursor() returns the previous value of
                    toggle.

   Portability:     MS-DOS only, true MDPA, CGA, EGA, MCGA, or VGA video
                    compatibles

 -------------------------------- Example ---------------------------------

    This program sets the cursor to display normally on exit.

           #include <graph.h>

           main()
           {
              . . . set video mode . . .

              _displaycursor(_GCURSORON);

              . . . display graphics . . .
              . . . restore original video mode and exit . . .
           }


See Also: _setvideomode()

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