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

Diff for /src/usr.bin/window/Attic/ttinit.c between version 1.4 and 1.5

version 1.4, 1998/04/26 22:49:07 version 1.5, 1999/11/14 17:34:24
Line 96 
Line 96 
          * Use the standard name of the terminal (i.e. the second           * Use the standard name of the terminal (i.e. the second
          * name in termcap).           * name in termcap).
          */           */
   #ifdef NCURSES_VERSION
           wwterm = strdup(_nc_first_name(cur_term->type.term_names));
   #else
         for (p = wwtermcap; *p && *p != '|' && *p != ':'; p++)          for (p = wwtermcap; *p && *p != '|' && *p != ':'; p++)
                 ;                  ;
         if (*p == '|')          if (*p == '|')
Line 108 
Line 111 
                         *t++ = *p++;                          *t++ = *p++;
                 *t = 0;                  *t = 0;
         }          }
   #endif
         for (tp = tt_tab; tp->tt_name != 0; tp++)          for (tp = tt_tab; tp->tt_name != 0; tp++)
                 if (strncmp(tp->tt_name, wwterm, tp->tt_len) == 0)                  if (strncmp(tp->tt_name, wwterm, tp->tt_len) == 0)
                         break;                          break;

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