[BACK]Return to screen.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / distrib / utils / more

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/distrib/utils/more/screen.c between version 1.4 and 1.5

version 1.4, 1998/02/04 11:09:10 version 1.5, 2003/08/06 13:36:54
Line 263  get_term()
Line 263  get_term()
         if ((term = getenv("TERM")) == NULL)          if ((term = getenv("TERM")) == NULL)
                 term = "unknown";                  term = "unknown";
         if (tgetent(termbuf, term) <= 0)          if (tgetent(termbuf, term) <= 0)
                 (void)strcpy(termbuf, "dumb:co#80:hc:");                  (void)strlcpy(termbuf, "dumb:co#80:hc:", sizeof(termbuf));
   
         /*          /*
          * Get size of the screen.           * Get size of the screen.
Line 400  get_term()
Line 400  get_term()
                          * No "home" string,                           * No "home" string,
                          * but we can use "move(0,0)".                           * but we can use "move(0,0)".
                          */                           */
                         (void)strcpy(sp, tgoto(sc_move, 0, 0));                          (void)strlcpy(sp, tgoto(sc_move, 0, 0),
                               sizeof(sbuf) - (sp - sbuf));
                         sc_home = sp;                          sc_home = sp;
                         sp += strlen(sp) + 1;                          sp += strlen(sp) + 1;
                 }                  }
Line 418  get_term()
Line 419  get_term()
                          * No "lower-left" string,                           * No "lower-left" string,
                          * but we can use "move(0,last-line)".                           * but we can use "move(0,last-line)".
                          */                           */
                         (void)strcpy(sp, tgoto(sc_move, 0, sc_height-1));                          (void)strlcpy(sp, tgoto(sc_move, 0, sc_height-1),
                               sizeof(sbuf) - (sp - sbuf));
                         sc_lower_left = sp;                          sc_lower_left = sp;
                         sp += strlen(sp) + 1;                          sp += strlen(sp) + 1;
                 }                  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

CVSweb <webmaster@jp.NetBSD.org>