patch-2.1.125 linux/scripts/lxdialog/menubox.c

Next file: linux/scripts/lxdialog/textbox.c
Previous file: linux/scripts/lxdialog/lxdialog.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.124/linux/scripts/lxdialog/menubox.c linux/scripts/lxdialog/menubox.c
@@ -70,8 +70,12 @@
     /* Clear 'residue' of last item */
     wattrset (win, menubox_attr);
     wmove (win, choice, 0);
+#if OLD_NCURSES
     for (i = 0; i < menu_width; i++)
 	waddch (win, ' ');
+#else
+    wclrtoeol(win);
+#endif
     wattrset (win, selected ? item_selected_attr : item_attr);
     mvwaddstr (win, choice, item_x, menu_item);
     if (hotkey) {
@@ -173,6 +177,7 @@
     for (i = 0; i < width - 2; i++)
 	waddch (dialog, ACS_HLINE);
     wattrset (dialog, dialog_attr);
+    wbkgdset (dialog, dialog_attr & A_COLOR);
     waddch (dialog, ACS_RTEE);
 
     if (title != NULL) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov