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>_clearscreen() clear screen to background color</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _clearscreen()          Clear screen to background color

 #include   <graph.h>

 void far _clearscreen( area  );
  short area;       Area to clear

    _clearscreen() erases all or part of the screen, filling it with the
    current background color. The area to be cleared can be specified by
    one of the following manifest constants, defined in graph.h:

    Constant         Meaning
    -------------    --------------------------------
    _GCLEARSCREEN    Clears and fills entire screen
    _GVIEWPORT       Clears and fills current viewport
    _GWINDOW         Clears and fills current text window

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

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

    This program clears the screen.

           #include <graph.h>

           main()
           {
              _clearscreen( _GCLEARSCREEN );
           }


See Also: _getbkcolor() _setbkcolor()

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