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

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

version 1.1, 1995/10/18 08:46:57 version 1.2, 1996/02/23 14:10:48
Line 1 
Line 1 
 /*      $NetBSD: wwcursor.c,v 1.3 1995/09/28 10:35:19 tls Exp $ */  /*      $NetBSD: wwcursor.c,v 1.4 1996/02/08 20:45:08 mycroft Exp $     */
   
 /*  /*
  * Copyright (c) 1983, 1993   * Copyright (c) 1983, 1993
Line 40 
Line 40 
 #if 0  #if 0
 static char sccsid[] = "@(#)wwcursor.c  8.1 (Berkeley) 6/6/93";  static char sccsid[] = "@(#)wwcursor.c  8.1 (Berkeley) 6/6/93";
 #else  #else
 static char rcsid[] = "$NetBSD: wwcursor.c,v 1.3 1995/09/28 10:35:19 tls Exp $";  static char rcsid[] = "$NetBSD: wwcursor.c,v 1.4 1996/02/08 20:45:08 mycroft Exp $";
 #endif  #endif
 #endif /* not lint */  #endif /* not lint */
   
Line 52 
Line 52 
         register char *win;          register char *win;
   
         if (on) {          if (on) {
                 if (w->ww_hascursor)                  if (ISSET(w->ww_wflags, WWW_HASCURSOR))
                         return;                          return;
                 w->ww_hascursor = 1;                  SET(w->ww_wflags, WWW_HASCURSOR);
         } else {          } else {
                 if (!w->ww_hascursor)                  if (!ISSET(w->ww_wflags, WWW_HASCURSOR))
                         return;                          return;
                 w->ww_hascursor = 0;                  CLR(w->ww_wflags, WWW_HASCURSOR);
         }          }
         if (wwcursormodes != 0) {          if (wwcursormodes != 0) {
                 win = &w->ww_win[w->ww_cur.r][w->ww_cur.c];                  win = &w->ww_win[w->ww_cur.r][w->ww_cur.c];
Line 88 
Line 88 
         if (new == wwcursormodes)          if (new == wwcursormodes)
                 return;                  return;
         for (i = 0; i < NWW; i++)          for (i = 0; i < NWW; i++)
                 if (wwindex[i] != 0 && (w = wwindex[i])->ww_hascursor) {                  if (wwindex[i] != 0 &&
                       ISSET((w = wwindex[i])->ww_wflags, WWW_HASCURSOR)) {
                         wwcursor(w, 0);                          wwcursor(w, 0);
                         wwcursormodes = new;                          wwcursormodes = new;
                         wwcursor(w, 1);                          wwcursor(w, 1);

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