Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sushi move curses initialization higher in main to ...
details: https://anonhg.NetBSD.org/src/rev/caa83d6859f8
branches: trunk
changeset: 535286:caa83d6859f8
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Aug 13 18:21:25 2002 +0000
description:
move curses initialization higher in main to prevent the curses
error function from being called before curses is initialized
diffstat:
usr.sbin/sushi/sushi.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diffs (43 lines):
diff -r fe5a96748d93 -r caa83d6859f8 usr.sbin/sushi/sushi.c
--- a/usr.sbin/sushi/sushi.c Tue Aug 13 18:16:31 2002 +0000
+++ b/usr.sbin/sushi/sushi.c Tue Aug 13 18:21:25 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sushi.c,v 1.11 2002/08/13 18:16:31 pooka Exp $ */
+/* $NetBSD: sushi.c,v 1.12 2002/08/13 18:21:25 pooka Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -86,6 +86,16 @@
else
lang_id = strdup(getenv("LANG"));
+ if (initscr() == NULL)
+ errx(1, "%s", "Cannot initialize curses");
+
+ cdkscreen = initCDKScreen(stdscr);
+
+ ioctl(0, TIOCGWINSZ, &ws);
+
+ initCDKColor();
+ raw();
+
parse_config();
tree_init();
i = 0;
@@ -103,16 +113,6 @@
}
}
- if (initscr() == NULL)
- errx(1, "%s", "Cannot initialize curses");
-
- cdkscreen = initCDKScreen(stdscr);
-
- ioctl(0, TIOCGWINSZ, &ws);
-
- initCDKColor();
- raw();
-
if (mte == NULL)
navigate_menu(cqMenuHeadp, "sushi_topmenu",
catgets(catalog, 4, 5, "<C></5>Sushi\n\n"));
Home |
Main Index |
Thread Index |
Old Index