home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / pub / unix / pine4.10.tar.gz / pine4.10.tar / pine4.10 / pico / window.c < prev    next >
C/C++ Source or Header  |  1998-02-27  |  2KB  |  61 lines

  1. #if    !defined(lint) && !defined(DOS)
  2. static char rcsid[] = "$Id: window.c,v 4.9 1998/02/28 00:10:21 hubert Exp $";
  3. #endif
  4. /*
  5.  * Program:    Window management routines
  6.  *
  7.  *
  8.  * Michael Seibel
  9.  * Networks and Distributed Computing
  10.  * Computing and Communications
  11.  * University of Washington
  12.  * Administration Builiding, AG-44
  13.  * Seattle, Washington, 98195, USA
  14.  * Internet: mikes@cac.washington.edu
  15.  *
  16.  * Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  17.  *
  18.  *
  19.  * Pine and Pico are registered trademarks of the University of Washington.
  20.  * No commercial use of these trademarks may be made without prior written
  21.  * permission of the University of Washington.
  22.  * 
  23.  * Pine, Pico, and Pilot software and its included text are Copyright
  24.  * 1989-1998 by the University of Washington.
  25.  * 
  26.  * The full text of our legal notices is contained in the file called
  27.  * CPYRIGHT, included with this distribution.
  28.  *
  29.  */
  30. /*
  31.  * Window management. Some of the functions are internal, and some are
  32.  * attached to keys that the user actually types.
  33.  */
  34.  
  35. #include    "headers.h"
  36.  
  37.  
  38. /*
  39.  * Refresh the screen. With no argument, it just does the refresh. With an
  40.  * argument it recenters "." in the current window. Bound to "C-L".
  41.  */
  42. refresh(f, n)
  43.   int f, n;
  44. {
  45.     /*
  46.      * since pine mode isn't using the traditional mode line, sgarbf isn't
  47.      * enough.
  48.      */
  49.     if(Pmaster && curwp)
  50.         curwp->w_flag |= WFMODE;
  51.  
  52.     if (f == FALSE)
  53.         sgarbf = TRUE;
  54.     else if(curwp){
  55.         curwp->w_force = 0;             /* Center dot. */
  56.         curwp->w_flag |= WFFORCE;
  57.     }
  58.  
  59.     return (TRUE);
  60. }
  61.