diff options
Diffstat (limited to 'usr.sbin/sysinstall/termcap.c')
-rw-r--r-- | usr.sbin/sysinstall/termcap.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/termcap.c b/usr.sbin/sysinstall/termcap.c index 1569479..5025dcd 100644 --- a/usr.sbin/sysinstall/termcap.c +++ b/usr.sbin/sysinstall/termcap.c @@ -29,6 +29,7 @@ prompt_term(char **termp, char **termcapp) const char *term, *termcap; } lookup[] = { { "ansi", termcap_ansi }, { "vt100", termcap_vt100 }, + { "cons25w", termcap_cons25w }, { "cons25", termcap_cons25 }, { "cons25-m", termcap_cons25_m } }; @@ -109,6 +110,15 @@ set_termcap(void) DebugFD, i, !i ? "success" : strerror(errno)); } } + +#ifdef PC98 + if (!term) { + if (setenv("TERM", "cons25w", 1) < 0) + return -1; + if (setenv("TERMCAP", termcap_cons25w, 1) < 0) + return -1; + } +#else if (ColorDisplay) { if (!term) { if (setenv("TERM", "cons25", 1) < 0) @@ -125,6 +135,7 @@ set_termcap(void) return -1; } } +#endif } if (ioctl(0, TIOCGSIZE, &ts) == -1) { msgDebug("Unable to get terminal size - errno %d\n", errno); |