version 1.7, 2000/04/15 05:22:14 |
version 1.8, 2001/02/05 01:57:50 |
|
|
#endif /* not lint */ |
#endif /* not lint */ |
|
|
#include <stdlib.h> |
#include <stdlib.h> |
|
#include <string.h> |
#include "ww.h" |
#include "ww.h" |
#include "tt.h" |
#include "tt.h" |
|
|
|
|
#ifdef NCURSES_VERSION |
#ifdef NCURSES_VERSION |
wwterm = strdup(_nc_first_name(cur_term->type.term_names)); |
wwterm = strdup(_nc_first_name(cur_term->type.term_names)); |
#elif !defined(TERMINFO) |
#elif !defined(TERMINFO) |
if ((p = strchr(wwtermcap, '|')) && p - wwtermcap == 2) { |
if ((p = strchr(wwtermcap, '|')) && (int)(p - wwtermcap) == 2) { |
/* Skip the two-character short name. */ |
/* Skip the two-character short name. */ |
for (p = wwtermcap; *p && *p != '|' && *p != ':'; p++) |
for (p = wwtermcap; *p && *p != '|' && *p != ':'; p++) |
; |
; |