Added flash notification and option

This commit is contained in:
James Booth
2012-04-24 01:39:23 +01:00
parent b3ae1a7d12
commit 1b7d9e9e26
4 changed files with 33 additions and 0 deletions

View File

@@ -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:");