mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 22:50:29 +00:00
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)
This commit is contained in:
committed by
Yu Watanabe
parent
8489c294f3
commit
bf82145576
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user