mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-09 02:51:11 +01:00
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 <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]>
This commit is contained in:
1 parent
668cdedfdb
commit
d0e1e09568
1 file changed
+2
@@ -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"));
|
||||
|
||||
Reference in new issue
Block a user