]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic/terminal-util: introduce SYSTEMD_COLORS environment variable 2381/head
authorJan Synacek <jsynacek@redhat.com>
Tue, 19 Jan 2016 09:17:19 +0000 (10:17 +0100)
committerJan Synacek <jsynacek@redhat.com>
Wed, 20 Jan 2016 09:12:41 +0000 (10:12 +0100)
commit40c9fe4c0862114dab390c8ed16f78cf056b9140
tree04bb1f55765a432bb0495963871eaf6dcd10faaf
parentd619a0c4a5bf4f9d5796bcac77160a14e4e24cb6
basic/terminal-util: introduce SYSTEMD_COLORS environment variable

... to determine if color output should be enabled. If the variable is not set,
fall back to using on_tty(). Also, rewrite existing code to use
colors_enabled() where appropriate.
man/systemd.xml
src/basic/terminal-util.c
src/basic/terminal-util.h
src/journal/journalctl.c
src/login/loginctl.c
src/machine/machinectl.c
src/systemctl/systemctl.c