diff options
author | Arnaud Lacombe <lacombar@gmail.com> | 2009-07-06 00:07:28 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-07-17 23:06:08 +0200 |
commit | d0e1e09568507ac771072d97f0781af82c935b3e (patch) | |
tree | 33638f86c9e2cc8cc45aea81c50cc15787f4d1e7 /scripts/kconfig/mconf.c | |
parent | 668cdedfdb2eb00d8efe127618bead4d46d9e942 (diff) | |
download | kernel_samsung_aries-d0e1e09568507ac771072d97f0781af82c935b3e.zip kernel_samsung_aries-d0e1e09568507ac771072d97f0781af82c935b3e.tar.gz kernel_samsung_aries-d0e1e09568507ac771072d97f0781af82c935b3e.tar.bz2 |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index 3bcacb4..25b60bc 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")); |