From 6a7aa7f3d9d42126138b256ce2a6fe01ecd4d3a4 Mon Sep 17 00:00:00 2001 From: nyan Date: Mon, 5 Jun 2000 13:17:23 +0000 Subject: - Remove obsolete PC-card boot.flp hack. It was for making both PC-card boot.flp and plain boot.flp. - Clean up crunchgen related routine. - Add PC-98 support. TODO: o Documentation o Fix some messages for PC-98 o Decrease the size of fixit.flp to 1.2MB o I18N (See: http://www.jp.FreeBSD.org/BootAsia/index.html) No response from jkh --- usr.sbin/sysinstall/termcap.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'usr.sbin/sysinstall/termcap.c') 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); -- cgit v1.1