summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-07 03:49:08 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-07 04:13:19 +0200
commite0376b177ca00bc5c3d8a271f6422ef3c869861b (patch)
tree0829cbfb1150f64c3c903269cace78142f964ba4 /src
parenta822056bca49a63cb832230af22f789c5ab5b856 (diff)
systemctl: minor beautifications
Diffstat (limited to 'src')
-rw-r--r--src/systemctl.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index 081f34bcfd..f585e11f49 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -239,20 +239,26 @@ static int list_units(DBusConnection *bus, char **args, unsigned n) {
int a = 0, b = 0;
+ if (streq(active_state, "maintenance"))
+ fputs(ANSI_HIGHLIGHT_ON, stdout);
+
printf("%-45s %-6s %-12s %-12s%n", id, load_state, active_state, sub_state, &a);
if (job_id != 0)
printf(" %-15s%n", job_type, &b);
else
- b = 1 + 16;
+ b = 1 + 15;
if (a + b + 2 < columns()) {
if (job_id == 0)
printf(" ");
- printf("%.*s", columns() - a - b - 2, description);
+ printf(" %.*s", columns() - a - b - 2, description);
}
+ if (streq(active_state, "maintenance"))
+ fputs(ANSI_HIGHLIGHT_OFF, stdout);
+
fputs("\n", stdout);
k++;
}