diff options
author | 1999-11-14 17:34:24 +0000 | |
---|---|---|
committer | 1999-11-14 17:34:24 +0000 | |
commit | 449ef70c85c81cd763d33ff014703f0c7eb1e7db (patch) | |
tree | 2549e27162df27936ccbc0041ea97a844a9075ad /usr.bin/window/ttinit.c | |
parent | USB audio. Commented out. (diff) | |
download | wireguard-openbsd-449ef70c85c81cd763d33ff014703f0c7eb1e7db.tar.xz wireguard-openbsd-449ef70c85c81cd763d33ff014703f0c7eb1e7db.zip |
o link with -ocurses for now since window does not work properly with ncurses
o use mkdtemp(), not mktemp + mkdir in TERMINFO support
o correct program paths for TERMINFO support
o use the curses unctrl() function instead of a private one
Diffstat (limited to 'usr.bin/window/ttinit.c')
-rw-r--r-- | usr.bin/window/ttinit.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/window/ttinit.c b/usr.bin/window/ttinit.c index 9d45997eda3..ea827ea7de2 100644 --- a/usr.bin/window/ttinit.c +++ b/usr.bin/window/ttinit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ttinit.c,v 1.4 1998/04/26 22:49:07 millert Exp $ */ +/* $OpenBSD: ttinit.c,v 1.5 1999/11/14 17:34:24 millert Exp $ */ /* $NetBSD: ttinit.c,v 1.3 1995/09/28 10:34:50 tls Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)ttinit.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: ttinit.c,v 1.4 1998/04/26 22:49:07 millert Exp $"; +static char rcsid[] = "$OpenBSD: ttinit.c,v 1.5 1999/11/14 17:34:24 millert Exp $"; #endif #endif /* not lint */ @@ -96,6 +96,9 @@ ttinit() * Use the standard name of the terminal (i.e. the second * name in termcap). */ +#ifdef NCURSES_VERSION + wwterm = strdup(_nc_first_name(cur_term->type.term_names)); +#else for (p = wwtermcap; *p && *p != '|' && *p != ':'; p++) ; if (*p == '|') @@ -108,6 +111,7 @@ ttinit() *t++ = *p++; *t = 0; } +#endif for (tp = tt_tab; tp->tt_name != 0; tp++) if (strncmp(tp->tt_name, wwterm, tp->tt_len) == 0) break; |