summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/system.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-18 15:29:47 +0000
committerjkh <jkh@FreeBSD.org>1995-05-18 15:29:47 +0000
commit05d53ab3a72fad10e4cd054385a989463c149d09 (patch)
treeddee1673e860ccbd6ed71f546ee602b5cdd073ff /usr.sbin/sysinstall/system.c
parenta2aa8e6d938599429cc618b57d5f766d09743aa9 (diff)
downloadFreeBSD-src-05d53ab3a72fad10e4cd054385a989463c149d09.zip
FreeBSD-src-05d53ab3a72fad10e4cd054385a989463c149d09.tar.gz
1. Use 8x16 fonts.
2. Don't use russian screenmap - apparently not necessary with right font. 3. Dequote bogusly quoted font name in english language setting. 4. Use setterm() and hack around an undesirable side-effect (cbreak is unset). 5. be smarter about setting OnVTY, and use it in cases where it makes sense. Submitted by: Nickolay N. Dudorov <nnd@gw.itfs.nsk.su>
Diffstat (limited to 'usr.sbin/sysinstall/system.c')
-rw-r--r--usr.sbin/sysinstall/system.c26
1 files changed, 11 insertions, 15 deletions
diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c
index 713092f..23dffe9 100644
--- a/usr.sbin/sysinstall/system.c
+++ b/usr.sbin/sysinstall/system.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: system.c,v 1.13 1995/05/18 02:42:33 jkh Exp $
+ * $Id: system.c,v 1.14 1995/05/18 09:02:02 jkh Exp $
*
* Jordan Hubbard
*
@@ -221,7 +221,7 @@ void
systemChangeFont(const u_char font[])
{
if (OnVTY) {
- if (ioctl(0, PIO_FONT8x14, font) < 0)
+ if (ioctl(0, PIO_FONT8x16, font) < 0)
msgConfirm("Sorry! Unable to load font for %s", getenv("LANG"));
}
}
@@ -236,30 +236,26 @@ void
systemChangeTerminal(char *color, const u_char c_term[],
char *mono, const u_char m_term[])
{
- if (!OnSerial) {
+ if (OnVTY) {
if (ColorDisplay) {
setenv("TERM", color, 1);
setenv("TERMCAP", c_term, 1);
- /* setterm(color); */
+ reset_shell_mode();
+ setterm(color);
+ init_acs();
+ cbreak(); noecho();
}
else {
setenv("TERM", mono, 1);
setenv("TERMCAP", m_term, 1);
- /* setterm(mono); */
+ reset_shell_mode();
+ setterm(mono);
+ init_acs();
+ cbreak(); noecho();
}
}
}
-void
-systemChangeScreenmap(const u_char newmap[])
-{
- if (OnVTY) {
- if (ioctl(0, PIO_SCRNMAP, newmap) < 0)
- msgConfirm("Sorry! Unable to load the screenmap for %s",
- getenv("LANG"));
- }
-}
-
/* Execute a system command, with varargs */
int
vsystem(char *fmt, ...)
OpenPOWER on IntegriCloud