diff options
author | jkh <jkh@FreeBSD.org> | 1996-09-06 09:36:45 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-09-06 09:36:45 +0000 |
commit | b134bdd0bcc9ee876f6d724a8d052ee8939a9237 (patch) | |
tree | 34abcc60c372d95f5aa9a1a3eea135c31e0db184 | |
parent | efc66b15ae9fb939543022c554c588005079bbe1 (diff) | |
download | FreeBSD-src-b134bdd0bcc9ee876f6d724a8d052ee8939a9237.zip FreeBSD-src-b134bdd0bcc9ee876f6d724a8d052ee8939a9237.tar.gz |
Make button highlighting more visible on B/W displays.
-rw-r--r-- | gnu/lib/libdialog/kernel.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gnu/lib/libdialog/kernel.c b/gnu/lib/libdialog/kernel.c index dd31047..7a67af6 100644 --- a/gnu/lib/libdialog/kernel.c +++ b/gnu/lib/libdialog/kernel.c @@ -328,14 +328,12 @@ void print_button(WINDOW *win, unsigned char *label, int y, int x, int selected) waddstr(win, selected ? "[" : " "); temp = strspn(label, " "); label += temp; - wattrset(win, selected ? button_label_active_attr : button_label_inactive_attr); for (i = 0; i < temp; i++) waddch(win, ' '); wattrset(win, selected ? button_key_active_attr : button_key_inactive_attr); waddch(win, label[0]); - wattrset(win, selected ? button_label_active_attr : button_label_inactive_attr); - waddstr(win, label+1); wattrset(win, selected ? button_active_attr : button_inactive_attr); + waddstr(win, label+1); waddstr(win, selected ? "]" : " "); wmove(win, y, x+temp+1); } |