aboutsummaryrefslogtreecommitdiff
path: root/display.c
diff options
context:
space:
mode:
authorAmit Arora <amit.arora@linaro.org>2010-11-09 11:16:53 +0530
committerAmit Arora <amit.arora@linaro.org>2010-11-09 11:16:53 +0530
commitac4e865c0c3b260002d1bd9e0b1a1ba7aa8d7382 (patch)
tree79d5f0db7c7fa97966a28f26714b93bb02b82ad2 /display.c
parent031263aff48b6a987015a34652bebe1764ca1f83 (diff)
downloadpowerdebug-ac4e865c0c3b260002d1bd9e0b1a1ba7aa8d7382.tar.gz
expand/collapse clocks
Diffstat (limited to 'display.c')
-rw-r--r--display.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/display.c b/display.c
index a3f312b..3dfa70f 100644
--- a/display.c
+++ b/display.c
@@ -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);
}