From: Arnaud Lacombe Date: Mon, 6 Jul 2009 04:07:28 +0000 (-0400) Subject: kconfig: initialize the screen before using curses(3) functions X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d0e1e09568;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Sam Ravnborg --- 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"));