projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
668cded
)
kconfig: initialize the screen before using curses(3) functions
author
Arnaud Lacombe
<lacombar@gmail.com>
Mon, 6 Jul 2009 04:07:28 +0000
(
00:07
-0400)
committer
Sam Ravnborg
<sam@ravnborg.org>
Fri, 17 Jul 2009 21:06:08 +0000
(23:06 +0200)
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>
scripts/kconfig/mconf.c
patch
|
blob
|
history
diff --git
a/scripts/kconfig/mconf.c
b/scripts/kconfig/mconf.c
index 3bcacb4bfd3af8284293a21fa202c886d3339126..25b60bc117f738fabc26efb9a2e8f4f7546cd8d1 100644
(file)
--- 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"));