diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-12-03 20:33:02 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-12-03 22:42:38 +0100 |
commit | ab91733c7e463c657358536540ca91d54521f3e6 (patch) | |
tree | 8fc8d95d8814dd7b7cd2f27012343cb17ee6355c /src/busctl | |
parent | 897f099bb0adf69d2b9332fe84d115f12a34da46 (diff) | |
download | systemd-ab91733c7e463c657358536540ca91d54521f3e6.tar.gz systemd-ab91733c7e463c657358536540ca91d54521f3e6.tar.bz2 systemd-ab91733c7e463c657358536540ca91d54521f3e6.zip |
json: add new display flag JSON_FORMAT_COLOR_AUTO
Typically we want to enable color when colors_enabled() says so, hence
let's automatize this.
Diffstat (limited to 'src/busctl')
-rw-r--r-- | src/busctl/busctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/busctl/busctl.c b/src/busctl/busctl.c index 6188216d28..0bcc89f6f2 100644 --- a/src/busctl/busctl.c +++ b/src/busctl/busctl.c @@ -1939,7 +1939,7 @@ static void json_dump_with_flags(JsonVariant *v, FILE *f) { json_variant_dump(v, (arg_json == JSON_PRETTY ? JSON_FORMAT_PRETTY : JSON_FORMAT_NEWLINE) | - colors_enabled() * JSON_FORMAT_COLOR, + JSON_FORMAT_COLOR_AUTO, f, NULL); } |