home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume3 / lib_term / ClearEOL.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-11-30  |  832 b   |  50 lines

  1.  
  2. void ClearEOL()
  3.  
  4. /*
  5.  ---------------------------------------------------------------------------
  6.  
  7.    Last revision - 
  8.      30 March 1984 - GWS
  9.  
  10.  
  11.    NAME
  12.      ClearEOL - clear to the end of line
  13.  
  14.    SYNOPSIS
  15.     void ClearEOL() 
  16.  
  17.    DESCRIPTION
  18.     Uses termcap(3x) routines to clear terminal screen. 
  19.  
  20.    SEE ALSO
  21.     termcap(3) 
  22.  
  23.    DIAGNOSTICS
  24.     If the screen doesn't clear, it didn't work. 
  25.  
  26.    AUTHOR
  27.      George W. Sherouse
  28.      30 March 1984
  29.  
  30.  ---------------------------------------------------------------------------
  31. */
  32.  
  33. {
  34.     static called = 0;
  35.     static char id[] = "ce", page_str[10];
  36.     static char *point = page_str, **point2 = &point;
  37.     extern char bp[1024];
  38.     int tgetent(), tputs();
  39.     int putchar();
  40.  
  41.     if (!called)
  42.     {
  43.     tgetstr(id, point2);
  44.     called++;
  45.     }
  46.  
  47.     (void) tputs(page_str, 1, putchar);
  48.     return;
  49. }
  50.