···1818#endif1919#include <ncurses.h>20202121-/*2222- * Colors in ncurses 1.9.9e do not work properly since foreground and2323- * background colors are OR'd rather than separately masked. This version2424- * of dialog was hacked to work with ncurses 1.9.9e, making it incompatible2525- * with standard curses. The simplest fix (to make this work with standard2626- * curses) uses the wbkgdset() function, not used in the original hack.2727- * Turn it off if we're building with 1.9.9e, since it just confuses things.2828- */2929-#if defined(NCURSES_VERSION) && defined(_NEED_WRAP) && !defined(GCC_PRINTFLIKE)3030-#define OLD_NCURSES 13131-#undef wbkgdset3232-#define wbkgdset(w,p) /*nothing */3333-#else3434-#define OLD_NCURSES 03535-#endif3636-3721#define TR(params) _tracef params38223923#define KEY_ESC 27
-8
scripts/kconfig/lxdialog/menubox.c
···6363 /* Clear 'residue' of last item */6464 wattrset(win, dlg.menubox.atr);6565 wmove(win, line_y, 0);6666-#if OLD_NCURSES6767- {6868- int i;6969- for (i = 0; i < menu_width; i++)7070- waddch(win, ' ');7171- }7272-#else7366 wclrtoeol(win);7474-#endif7567 wattrset(win, selected ? dlg.item_selected.atr : dlg.item.atr);7668 mvwaddstr(win, line_y, item_x, menu_item);7769 if (hotkey) {
-9
scripts/kconfig/lxdialog/textbox.c
···336336 waddnstr(win, line, MIN(strlen(line), width - 2));337337338338 /* Clear 'residue' of previous line */339339-#if OLD_NCURSES340340- {341341- int x = getcurx(win);342342- int i;343343- for (i = 0; i < width - x; i++)344344- waddch(win, ' ');345345- }346346-#else347339 wclrtoeol(win);348348-#endif349340}350341351342/*