chiark / gitweb /
systemd-delta: Only print colors when on a tty
authorDaniel Schaal <farbing@web.de>
Fri, 2 Aug 2013 05:59:02 +0000 (07:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 4 Aug 2013 12:33:02 +0000 (08:33 -0400)
commit0b5a519c89b5fb48ec7a3cfbd9c02283ae0f23ac
treef97494aceb6e7feb68c2ef554f4fa59485f6e7f1
parent92d700dea651e2a09ee75c7713b8387f11435cec
systemd-delta: Only print colors when on a tty

This make systemd-delta follow the behaviour of systemctl
and journalctl.

https://bugs.freedesktop.org/show_bug.cgi?id=67656

[zj: unify color query methods between those three programs.]
src/delta/delta.c
src/journal/journalctl.c
src/shared/util.h
src/systemctl/systemctl.c