1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-10-06 20:03:46 -04:00

UI tweaks

This commit is contained in:
James Booth 2012-02-18 21:10:51 +00:00
parent 7db2da6d11
commit 3fab294c39

View File

@ -76,11 +76,18 @@ void status_bar_clear(void)
static void _status_bar_update_time(void)
{
char bar_time[8];
char bar_time[6];
char tstmp[80];
get_time(tstmp);
sprintf(bar_time, "[%s]", tstmp);
sprintf(bar_time, "%s", tstmp);
mvwprintw(status_bar, 0, 1, bar_time);
wattron(status_bar, COLOR_PAIR(4));
mvwaddch(status_bar, 0, 1, '[');
wattroff(status_bar, COLOR_PAIR(4));
mvwprintw(status_bar, 0, 2, bar_time);
wattron(status_bar, COLOR_PAIR(4));
mvwaddch(status_bar, 0, 7, ']');
wattroff(status_bar, COLOR_PAIR(4));
}