From: Lennart Poettering Date: Fri, 24 Mar 2023 21:52:51 +0000 (+0100) Subject: systemctl: show service status string in other color X-Git-Tag: v254-rc1~896 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf82145576ca159e265734e62b336bcab78ea224;p=thirdparty%2Fsystemd.git systemctl: show service status string in other color Let's add a dash of colour to separate our own status info from the the status info supplied by the service. (I wanted to make this italics, but apparently popular terminal emulators don't support that, such as xterm) --- diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c index fdc950a9e32..4a14c105dd7 100644 --- a/src/systemctl/systemctl-show.c +++ b/src/systemctl/systemctl-show.c @@ -681,7 +681,7 @@ static void print_status_info( } if (i->status_text) - printf(" Status: \"%s\"\n", i->status_text); + printf(" Status: \"%s%s%s\"\n", ansi_highlight_cyan(), i->status_text, ansi_normal()); if (i->status_errno > 0) { errno = i->status_errno; printf(" Error: %i (%m)\n", i->status_errno);