1154 |
struct tm *local_time; |
struct tm *local_time; |
1155 |
char text[1024 + 1]; |
char text[1024 + 1]; |
1156 |
|
|
1157 |
|
/* make gcc happy */ |
1158 |
|
(void) buffer; |
1159 |
|
|
1160 |
if (!gui_ok) |
if (!gui_ok) |
1161 |
return; |
return; |
1162 |
|
|
1163 |
for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window) |
for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window) |
1164 |
{ |
{ |
1165 |
if (ptr_win->buffer == buffer) |
if (erase) |
1166 |
|
gui_curses_window_clear (ptr_win->win_infobar); |
1167 |
|
|
1168 |
|
if (has_colors ()) |
1169 |
{ |
{ |
1170 |
if (erase) |
gui_window_set_color (ptr_win->win_infobar, COLOR_WIN_INFOBAR); |
1171 |
gui_curses_window_clear (ptr_win->win_infobar); |
wborder (ptr_win->win_infobar, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '); |
|
|
|
|
if (has_colors ()) |
|
|
{ |
|
|
gui_window_set_color (ptr_win->win_infobar, COLOR_WIN_INFOBAR); |
|
|
wborder (ptr_win->win_infobar, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '); |
|
|
wrefresh (ptr_win->win_infobar); |
|
|
} |
|
|
wmove (ptr_win->win_infobar, 0, 0); |
|
|
|
|
|
time_seconds = time (NULL); |
|
|
local_time = localtime (&time_seconds); |
|
|
if (local_time) |
|
|
{ |
|
|
strftime (text, 1024, cfg_look_infobar_timestamp, local_time); |
|
|
gui_window_set_color (ptr_win->win_infobar, COLOR_WIN_INFOBAR); |
|
|
wprintw (ptr_win->win_infobar, "%s", text); |
|
|
} |
|
|
if (gui_infobar) |
|
|
{ |
|
|
gui_window_set_color (ptr_win->win_infobar, gui_infobar->color); |
|
|
wprintw (ptr_win->win_infobar, " | %s", gui_infobar->text); |
|
|
} |
|
|
|
|
1172 |
wrefresh (ptr_win->win_infobar); |
wrefresh (ptr_win->win_infobar); |
|
refresh (); |
|
1173 |
} |
} |
1174 |
|
wmove (ptr_win->win_infobar, 0, 0); |
1175 |
|
|
1176 |
|
time_seconds = time (NULL); |
1177 |
|
local_time = localtime (&time_seconds); |
1178 |
|
if (local_time) |
1179 |
|
{ |
1180 |
|
strftime (text, 1024, cfg_look_infobar_timestamp, local_time); |
1181 |
|
gui_window_set_color (ptr_win->win_infobar, COLOR_WIN_INFOBAR); |
1182 |
|
wprintw (ptr_win->win_infobar, "%s", text); |
1183 |
|
} |
1184 |
|
if (gui_infobar) |
1185 |
|
{ |
1186 |
|
gui_window_set_color (ptr_win->win_infobar, gui_infobar->color); |
1187 |
|
wprintw (ptr_win->win_infobar, " | %s", gui_infobar->text); |
1188 |
|
} |
1189 |
|
|
1190 |
|
wrefresh (ptr_win->win_infobar); |
1191 |
|
refresh (); |
1192 |
} |
} |
1193 |
} |
} |
1194 |
|
|