From bf82145576ca159e265734e62b336bcab78ea224 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 24 Mar 2023 22:52:51 +0100 Subject: [PATCH] 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) --- src/systemctl/systemctl-show.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);