[BACK]Return to lcmd1.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / window

Diff for /src/usr.bin/window/Attic/lcmd1.c between version 1.1 and 1.2

version 1.1, 1995/10/18 08:46:55 version 1.2, 1996/02/23 14:10:41
Line 1 
Line 1 
 /*      $NetBSD: lcmd1.c,v 1.5 1995/09/29 00:44:02 cgd Exp $    */  /*      $NetBSD: lcmd1.c,v 1.6 1996/02/08 20:45:00 mycroft Exp $        */
   
 /*  /*
  * Copyright (c) 1983, 1993   * Copyright (c) 1983, 1993
Line 40 
Line 40 
 #if 0  #if 0
 static char sccsid[] = "@(#)lcmd1.c     8.1 (Berkeley) 6/6/93";  static char sccsid[] = "@(#)lcmd1.c     8.1 (Berkeley) 6/6/93";
 #else  #else
 static char rcsid[] = "$NetBSD: lcmd1.c,v 1.5 1995/09/29 00:44:02 cgd Exp $";  static char rcsid[] = "$NetBSD: lcmd1.c,v 1.6 1996/02/08 20:45:00 mycroft Exp $";
 #endif  #endif
 #endif /* not lint */  #endif /* not lint */
   
Line 74 
Line 74 
         struct ww *w;          struct ww *w;
         int col, row, ncol, nrow, id, nline;          int col, row, ncol, nrow, id, nline;
         char *label;          char *label;
         char haspty, hasframe, mapnl, keepopen, smooth;          int haspty, hasframe, mapnl, keepopen, smooth;
         char *shf, **sh;          char *shf, **sh;
         char *argv[sizeof default_shell / sizeof *default_shell];          char *argv[sizeof default_shell / sizeof *default_shell];
         register char **pp;          register char **pp;
Line 116 
Line 116 
                 sh = default_shell;                  sh = default_shell;
                 shf = default_shellfile;                  shf = default_shellfile;
         }          }
         if ((w = openwin(id, row, col, nrow, ncol, nline, label, haspty,          if ((w = openwin(id, row, col, nrow, ncol, nline, label,
             hasframe, shf, sh)) == 0)              haspty ? WWT_PTY : WWT_SOCKET, hasframe ? WWU_HASFRAME : 0, shf,
               sh)) == 0)
                 return;                  return;
         w->ww_mapnl = mapnl;          if (mapnl)
         w->ww_keepopen = keepopen;                  SET(w->ww_wflags, WWW_MAPNL);
         w->ww_noupdate = !smooth;          else
                   CLR(w->ww_wflags, WWW_MAPNL);
           if (keepopen)
                   SET(w->ww_uflags, WWU_KEEPOPEN);
           else
                   CLR(w->ww_uflags, WWU_KEEPOPEN);
           if (!smooth)
                   SET(w->ww_wflags, WWW_NOUPDATE);
           else
                   CLR(w->ww_wflags, WWW_NOUPDATE);
         v->v_type = V_NUM;          v->v_type = V_NUM;
         v->v_num = id + 1;          v->v_num = id + 1;
 }  }
Line 155 
Line 165 
         v->v_num = 0;          v->v_num = 0;
         if ((w = vtowin(a++, selwin)) == 0)          if ((w = vtowin(a++, selwin)) == 0)
                 return;                  return;
         v->v_num = !w->ww_noupdate;          v->v_num = ISSET(w->ww_wflags, WWW_NOUPDATE) == 0;
         w->ww_noupdate = !vtobool(a, v->v_num, v->v_num);          if (!vtobool(a, v->v_num, v->v_num))
                   SET(w->ww_wflags, WWW_NOUPDATE);
           else
                   CLR(w->ww_wflags, WWW_NOUPDATE);
 }  }
   
 struct lcmd_arg arg_def_smooth[] = {  struct lcmd_arg arg_def_smooth[] = {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2