From 9b8b1d8b6bf4dcef2859f17878b983d13351000e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 20 Nov 2023 13:00:23 +0100 Subject: [PATCH] systemctl: also grey out useful hints in output, since no primary contents shown here --- src/systemctl/systemctl-list-units.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/systemctl/systemctl-list-units.c b/src/systemctl/systemctl-list-units.c index be074663e2e..a1482d40c22 100644 --- a/src/systemctl/systemctl-list-units.c +++ b/src/systemctl/systemctl-list-units.c @@ -235,12 +235,14 @@ static int output_units_list(const UnitInfo *unit_infos, size_t c) { if (arg_all || strv_contains(arg_states, "inactive")) printf("%s%zu loaded units listed.%s\n" - "To show all installed unit files use 'systemctl list-unit-files'.\n", - on, records, off); + "%sTo show all installed unit files use 'systemctl list-unit-files'.%s\n", + on, records, off, + ansi_grey(), ansi_normal()); else if (!arg_states) - printf("%s%zu loaded units listed.%s Pass --all to see loaded but inactive units, too.\n" - "To show all installed unit files use 'systemctl list-unit-files'.\n", - on, records, off); + printf("%s%zu loaded units listed.%s %sPass --all to see loaded but inactive units, too.%s\n" + "%sTo show all installed unit files use 'systemctl list-unit-files'.%s\n", + on, records, off, + ansi_grey(), ansi_normal(), ansi_grey(), ansi_normal()); else printf("%zu loaded units listed.\n", records); } -- 2.47.3