summaryrefslogtreecommitdiff
path: root/scripts/kconfig/mconf.c
diff options
context:
space:
mode:
authorArnaud Lacombe <lacombar@gmail.com>2009-07-06 00:07:28 -0400
committerSam Ravnborg <sam@ravnborg.org>2009-07-17 23:06:08 +0200
commitd0e1e09568507ac771072d97f0781af82c935b3e (patch)
tree33638f86c9e2cc8cc45aea81c50cc15787f4d1e7 /scripts/kconfig/mconf.c
parent668cdedfdb2eb00d8efe127618bead4d46d9e942 (diff)
kconfig: initialize the screen before using curses(3) functions
This is needed on non ncurses based implementation to get a properly initialized `stdscr' in main(). Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig/mconf.c')
-rw-r--r--scripts/kconfig/mconf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index 3bcacb4bfd3a..25b60bc117f7 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -888,6 +888,8 @@ int main(int ac, char **av)
single_menu_mode = 1;
}
+ initscr();
+
getyx(stdscr, saved_y, saved_x);
if (init_dialog(NULL)) {
fprintf(stderr, N_("Your display is too small to run Menuconfig!\n"));