1 /* Buttons
2 
3  * Copyright (C) 1998 J.A. Bezemer
4  *
5  * Licensed under the terms of the GNU General Public License.
6  * ABSOLUTELY NO WARRANTY.
7  * See the file `COPYING' in this directory.
8  */
9 
10 #include "buttons.h"
11 #ifndef OLD_CURSES
12 #include <ncurses.h>
13 #else
14 #include <curses.h>
15 #endif
16 
17 
18 void
button_display(button_t * button)19 button_display (button_t * button)
20 {
21   int y, x;
22   if (button->selected)
23     attron (A_STANDOUT);
24 
25   mvaddstr (button->y, button->x, button->text);
26 
27   getyx (stdscr, y, x);
28   move (y, x - 1);
29 
30   if (button->selected)
31     attroff (A_STANDOUT);
32 }
33