Skip to content

Commit

Permalink
kconfig: initialize the screen before using curses(3) functions
Browse files Browse the repository at this point in the history
This is needed on non ncurses based implementation to get a properly
initialized `stdscr' in main().

Cc: Roman Zippel <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
lacombar authored and sravnborg committed Jul 17, 2009
1 parent 668cded commit d0e1e09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/kconfig/mconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit d0e1e09

Please sign in to comment.