home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / pine / pico / window.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-06  |  2.6 KB  |  77 lines

  1. #if    !defined(lint) && !defined(DOS)
  2. static char rcsid[] = "$Id: window.c,v 4.2 1993/04/15 00:34:26 mikes 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.  * Copyright 1991-1993  University of Washington
  19.  *
  20.  *  Permission to use, copy, modify, and distribute this software and its
  21.  * documentation for any purpose and without fee to the University of
  22.  * Washington is hereby granted, provided that the above copyright notice
  23.  * appears in all copies and that both the above copyright notice and this
  24.  * permission notice appear in supporting documentation, and that the name
  25.  * of the University of Washington not be used in advertising or publicity
  26.  * pertaining to distribution of the software without specific, written
  27.  * prior permission.  This software is made available "as is", and
  28.  * THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
  29.  * WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED
  30.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN
  31.  * NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL,
  32.  * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  33.  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT
  34.  * (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION
  35.  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  36.  *
  37.  * Pine and Pico are trademarks of the University of Washington.
  38.  * No commercial use of these trademarks may be made without prior
  39.  * written permission of the University of Washington.
  40.  *
  41.  */
  42. /*
  43.  * Window management. Some of the functions are internal, and some are
  44.  * attached to keys that the user actually types.
  45.  */
  46.  
  47. #include        <stdio.h>
  48. #include        "estruct.h"
  49. #include        "pico.h"
  50. #include    "edef.h"
  51. #include    "osdep.h"
  52.  
  53.  
  54. /*
  55.  * Refresh the screen. With no argument, it just does the refresh. With an
  56.  * argument it recenters "." in the current window. Bound to "C-L".
  57.  */
  58. refresh(f, n)
  59.   int f, n;
  60. {
  61.     /*
  62.      * since pine mode isn't using the traditional mode line, sgarbf isn't
  63.      * enough.
  64.      */
  65.     if(Pmaster)
  66.         curwp->w_flag |= WFMODE;
  67.  
  68.     if (f == FALSE)
  69.         sgarbf = TRUE;
  70.     else{
  71.         curwp->w_force = 0;             /* Center dot. */
  72.         curwp->w_flag |= WFFORCE;
  73.     }
  74.  
  75.     return (TRUE);
  76. }
  77.