Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst XXX if a color term, do color. horribl...
details: https://anonhg.NetBSD.org/src/rev/ce83895932f2
branches: trunk
changeset: 517687:ce83895932f2
user: perry <perry%NetBSD.org@localhost>
date: Sat Nov 17 02:06:47 2001 +0000
description:
XXX if a color term, do color. horrible kludge.
diffstat:
distrib/utils/sysinst/main.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r 3cddb9941af2 -r ce83895932f2 distrib/utils/sysinst/main.c
--- a/distrib/utils/sysinst/main.c Sat Nov 17 01:52:56 2001 +0000
+++ b/distrib/utils/sysinst/main.c Sat Nov 17 02:06:47 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.25 2001/06/06 23:12:49 scottr Exp $ */
+/* $NetBSD: main.c,v 1.26 2001/11/17 02:06:47 perry Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -115,11 +115,20 @@
__menu_initerror();
exit(1);
}
+
/*
* XXX the following is bogus. if screen is too small, message
* XXX window will be overwritten by menus.
*/
win = newwin(getmaxy(stdscr) - 2, getmaxx(stdscr) - 2, 1, 1);
+ if (has_colors()) {
+ /*
+ * XXX This color trick should be done so much better,
+ * but is it worth it?
+ */
+ wbkgd(win, COLOR_PAIR(1));
+ wattrset(win, COLOR_PAIR(1));
+ }
if (win == NULL) {
(void)fprintf(stderr,
"sysinst: screen too small\n");
Home |
Main Index |
Thread Index |
Old Index