mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 23:46:21 +00:00
Added flash notification and option
This commit is contained in:
11
status_bar.c
11
status_bar.c
@@ -35,6 +35,9 @@ static int is_new[9];
|
||||
static int dirty;
|
||||
static char curr_time[80];
|
||||
|
||||
// allow flash?
|
||||
static int do_flash = FALSE;
|
||||
|
||||
static void _status_bar_update_time(void);
|
||||
|
||||
void create_status_bar(void)
|
||||
@@ -158,9 +161,17 @@ void status_bar_new(const int win)
|
||||
wattroff(status_bar, COLOR_PAIR(3));
|
||||
wattroff(status_bar, A_BLINK);
|
||||
|
||||
if (do_flash == TRUE)
|
||||
flash();
|
||||
|
||||
dirty = TRUE;
|
||||
}
|
||||
|
||||
void status_bar_set_flash(int val)
|
||||
{
|
||||
do_flash = val;
|
||||
}
|
||||
|
||||
void status_bar_get_password(void)
|
||||
{
|
||||
status_bar_print_message("Enter password:");
|
||||
|
||||
Reference in New Issue
Block a user