]> git.baikalelectronics.ru Git - kernel.git/commit
mconf: use function calls instead of ncurses' variables LINES and COLS
authorDirk Gouders <dirk@gouders.net>
Sun, 12 May 2013 10:30:49 +0000 (12:30 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 18 Jun 2013 21:58:58 +0000 (23:58 +0200)
commit3d052daade8664867be17dbe40f39536d3acde86
tree8d4b6fac4d7a4f4c7220918ee93f175ae4a01ff0
parentbaa64a9a351cf2b51b2bb8a962cf4c224e964cd6
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>
scripts/kconfig/lxdialog/checklist.c
scripts/kconfig/lxdialog/inputbox.c
scripts/kconfig/lxdialog/menubox.c
scripts/kconfig/lxdialog/textbox.c
scripts/kconfig/lxdialog/util.c
scripts/kconfig/lxdialog/yesno.c