home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / CURSES.LZH / WINCLEAR.C < prev    next >
C/C++ Source or Header  |  1980-01-01  |  2KB  |  43 lines

  1. /****************************************************************/
  2. /* Clear() routines of the PCcurses package            */
  3. /*                                */
  4. /****************************************************************/
  5. /* This version of curses is based on ncurses, a curses version    */
  6. /* originally written by Pavel Curtis at Cornell University.    */
  7. /* I have made substantial changes to make it run on IBM PC's,    */
  8. /* and therefore consider myself free to make it public domain.    */
  9. /*        Bjorn Larsson (...mcvax!enea!infovax!bl)    */
  10. /****************************************************************/
  11. /* 1.0:    Release:                    870515    */
  12. /* 1.2:    Rcsid[] string for maintenance:            881002    */
  13. /* 1.3:    MSC -W3, Turbo'C' -w -w-pro checkes:        881005    */
  14. /****************************************************************/
  15.  
  16. #include <curses.h>
  17. #include <curspriv.h>
  18.  
  19. char _curses_winclear_rcsid[] = "@(#)winclear.c v1.3 - 881005";
  20.  
  21. /****************************************************************/
  22. /* Wclear() fills all lines of window 'win' with blanks, and    */
  23. /* marks the window to be cleared at next refresh operation.    */
  24. /****************************************************************/
  25.  
  26. void    wclear(win)
  27.   WINDOW    *win;
  28.   {
  29.   werase(win);
  30.   win->_clear = TRUE;
  31.   } /* wclear */
  32.  
  33. /****************************************************************/
  34. /* Clear() fills all lines of stdscr with blanks, and marks    */
  35. /* marks sdtscr to be cleared at next refresh operation.    */
  36. /****************************************************************/
  37.  
  38. void clear()
  39.   {
  40.   werase(stdscr);
  41.   stdscr->_clear = TRUE;
  42.   } /* clear */
  43.