]> git.ipfire.org Git - thirdparty/systemd.git/commit
journald-console: Add colors when forwarding to console 26849/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 16 Mar 2023 10:22:58 +0000 (11:22 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 16 Mar 2023 10:22:58 +0000 (11:22 +0100)
commita4180c0fb3a5f7e763c0757cedc791b4e2f9e633
tree93fa94925406b588e546ffab80414fd87a469940
parent197dd3a9a4bda2f604b437aa395098622678c416
journald-console: Add colors when forwarding to console

Let's color output when we're forwarding to the console. To make this
work, we inherit TERM from pid 1 and use it to decide whether we should
output colors or not.
src/journal/journald-console.c
units/systemd-journald.service.in