linux/scripts/kconfig/lxdialog
Dirk Gouders 4f2de3e199 mconf: use function calls instead of ncurses' variables LINES and COLS
According to the documentation [1], LINES and COLS are initialized by
initscr(); it does not say anything about the behavior when windows are
resized.

Do not rely on the current implementation of ncurses that updates
these variables on resize, but use the propper function calls to get
window dimensions.

init_dialog() could make use of the variables, but for the sake of
consistency we do not change it's current use of the macro getmaxyx().

[1] ncurses(3X)

Signed-off-by: Dirk Gouders <dirk@gouders.net>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2013-06-18 23:58:58 +02:00
..
.gitignore gitignore: ignore more generated files 2006-01-03 11:35:26 +01:00
BIG.FAT.WARNING kconfig: move lxdialog to scripts/kconfig/lxdialog 2005-12-16 21:35:19 +01:00
check-lxdialog.sh kconfig/lxdialog: rationalise the include paths where to find {.n}curses{,w}.h 2013-04-16 22:00:32 +02:00
checklist.c mconf: use function calls instead of ncurses' variables LINES and COLS 2013-06-18 23:58:58 +02:00
dialog.h kconfig/lxdialog: Add definitions for mininimum (re)size values 2013-06-16 11:09:56 +02:00
inputbox.c mconf: use function calls instead of ncurses' variables LINES and COLS 2013-06-18 23:58:58 +02:00
menubox.c mconf: use function calls instead of ncurses' variables LINES and COLS 2013-06-18 23:58:58 +02:00
textbox.c mconf: use function calls instead of ncurses' variables LINES and COLS 2013-06-18 23:58:58 +02:00
util.c mconf: use function calls instead of ncurses' variables LINES and COLS 2013-06-18 23:58:58 +02:00
yesno.c mconf: use function calls instead of ncurses' variables LINES and COLS 2013-06-18 23:58:58 +02:00