version 1.4, 1998/04/26 22:49:07 |
version 1.5, 1999/11/14 17:34:24 |
|
|
* 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 == '|') |
|
|
*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; |