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 | |
parent | 668cdedfdb2eb00d8efe127618bead4d46d9e942 (diff) | |
download | talos-obmc-linux-d0e1e09568507ac771072d97f0781af82c935b3e.tar.gz talos-obmc-linux-d0e1e09568507ac771072d97f0781af82c935b3e.zip |
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')
-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 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")); |