update
This commit is contained in:
parent
8295df646f
commit
d9e6f8b3a3
5 changed files with 348 additions and 3 deletions
6
cclock.c
6
cclock.c
|
|
@ -291,15 +291,15 @@ for (int i = 1; i < argc; i++) {
|
|||
int time_x = (cols - strlen(time_buf)) / 2;
|
||||
int y_mid = rows / 2;
|
||||
attron(A_BOLD);
|
||||
mvprintw(y_mid, time_x, "%s", time_buf);
|
||||
mvprintw(y_mid -1, time_x, "%s", time_buf);
|
||||
attroff(A_BOLD);
|
||||
|
||||
int date_x = (cols - strlen(date_buf)) / 2;
|
||||
mvprintw(y_mid + 1, date_x, "%s", date_buf);
|
||||
mvprintw(y_mid, date_x, "%s", date_buf);
|
||||
|
||||
if (!hide_temp) {
|
||||
int temp_x = (cols - strlen(temp_buf)) / 2;
|
||||
mvprintw(y_mid + 2, temp_x, "%s", temp_buf);
|
||||
mvprintw(y_mid + 1, temp_x, "%s", temp_buf);
|
||||
}
|
||||
|
||||
if (!quiet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue