mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-05 09:17:44 +03:00
systemctl: properly turn off color after active column
If we turn on red color for the active column and it is not combined with underlining, then we need to turn it off explicitly afterwards. Do that.
This commit is contained in:
parent
e510508115
commit
835a19e02f
@ -513,13 +513,13 @@ static int output_units_list(const UnitInfo *unit_infos, unsigned c) {
|
||||
off_circle = ansi_normal();
|
||||
circle = true;
|
||||
on_loaded = underline ? ansi_highlight_red_underline() : ansi_highlight_red();
|
||||
off_loaded = on_underline;
|
||||
off_loaded = underline ? on_underline : ansi_normal();
|
||||
} else if (streq(u->active_state, "failed") && !arg_plain) {
|
||||
on_circle = ansi_highlight_red();
|
||||
off_circle = ansi_normal();
|
||||
circle = true;
|
||||
on_active = underline ? ansi_highlight_red_underline() : ansi_highlight_red();
|
||||
off_active = on_underline;
|
||||
off_active = underline ? on_underline : ansi_normal();
|
||||
}
|
||||
|
||||
if (u->machine) {
|
||||
|
Loading…
Reference in New Issue
Block a user