diff options
author | Amit Arora <amit.arora@linaro.org> | 2010-11-09 11:16:53 +0530 |
---|---|---|
committer | Amit Arora <amit.arora@linaro.org> | 2010-11-09 11:16:53 +0530 |
commit | ac4e865c0c3b260002d1bd9e0b1a1ba7aa8d7382 (patch) | |
tree | 79d5f0db7c7fa97966a28f26714b93bb02b82ad2 /display.c | |
parent | 031263aff48b6a987015a34652bebe1764ca1f83 (diff) |
expand/collapse clocks
Diffstat (limited to 'display.c')
-rw-r--r-- | display.c | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -220,17 +220,15 @@ void show_regulator_info(int verbose) } -void print_clock_header(int level) +void print_clock_header(void) { - char lev[NAME_MAX]; - - sprintf(lev, "(Level %d)\n", level); werase(clock_win); wattron(clock_win, A_BOLD); - print(clock_win, 0, 0, "Name %s", lev); + print(clock_win, 0, 0, "Name"); print(clock_win, 54, 0, "Flags"); print(clock_win, 64, 0, "Rate"); print(clock_win, 72, 0, "Usecount"); + print(clock_win, 84, 0, "ChildCount"); wattroff(clock_win, A_BOLD); wrefresh(clock_win); } @@ -249,12 +247,17 @@ void print_sensor_header(void) wrefresh(sensor_win); } -void print_one_clock(int line, char *str, int bold) +void print_one_clock(int line, char *str, int bold, int highlight) { if (bold) wattron(clock_win, WA_BOLD); + if (highlight) + wattron(clock_win, WA_STANDOUT); + print(clock_win, 0, line + 1, "%s", str); if (bold) wattroff(clock_win, WA_BOLD); + if (highlight) + wattroff(clock_win, WA_STANDOUT); wrefresh(clock_win); } |