home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume1 / 8710 / pc-curses-doc / 2 / clearscreen.m < prev    next >
Encoding:
Text File  |  1993-09-02  |  1.6 KB  |  60 lines

  1. NAME
  2.     doupdate() clrupdate() - update screen
  3.     transformline() - update physical line
  4.     clearscreen() - clear physical screen  
  5.     gotoxy() - move physical cursor to desired address  
  6.     putchar() - write character with attributes to the physical screen
  7.  
  8. SYNOPSIS
  9.     #include <curses.h>
  10.     #include <curspriv.h>
  11.  
  12.     void doupdate()
  13.  
  14.     static void clrupdate(scr)
  15.     WINDOW *scr;
  16.  
  17.     static bool transformline(lineno)
  18.     register int lineno;
  19.  
  20.     static void clearscreen()
  21.  
  22.     static void gotoxy(row,col)
  23.     int row, col;
  24.  
  25.     static void Putchar(ch)
  26.     int ch;
  27.  
  28. DESCRIPTION
  29.     doupdate() updates the physical screen to look like _curs-  
  30.     var.tmpwin if curscr is not 'Clear-marked'. Otherwise it  
  31.     updates the screen to look like curscr.  
  32.  
  33.     clrupdate() updates the screen by clearing it and then  
  34.     redraw it in it's entirety. If _cursvar.refrbrk is TRUE, and  
  35.     there is pending input characters, the update will be pre-  
  36.     maturely terminated.  
  37.  
  38.     transformline() updates the given physical line to look  
  39.     like the corresponding line in _cursvar.tmpwin. Transform-  
  40.     returns 1 if premature refresh end is allowed, and there is  
  41.     an input character pending.  
  42.  
  43.     clearscreen() clears the physical screen and puts the cursor  
  44.     in the home position.  
  45.  
  46.     gotoxy() moves the physical cursor to the desired address on  
  47.     the screen. We don't optimize here - on a PC, it takes more  
  48.     time to optimize than to do things directly.  
  49.  
  50.     putchar() writes a character, with attributes, to the physi-  
  51.     cal screen, but avoids writing to the lower right screen  
  52.     position.  
  53.  
  54. EXAMPLES
  55.  
  56. SEE ALSO
  57.     _cursespendch(); _cursesscroll(); _cursescursor(); _cursescattr()
  58.  
  59. BUGS
  60.