diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-12-14 15:39:26 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-15 12:56:03 +0900 |
commit | 7a14db9cfd3f81d77a1e4ecce67b4d2044ebc9c4 (patch) | |
tree | 75fe19b108b4f86de492dce2e7a0aec77241363e /src/timesync | |
parent | 60e84f02055b76bd8916822939b686ba9b5798d5 (diff) | |
download | systemd-7a14db9cfd3f81d77a1e4ecce67b4d2044ebc9c4.tar.gz |
basic: do not output emojis if not on a proper terminal
$TERM would generally be set if we're connected to a proper graphical terminal
emulator. In all other cases, in particular if $TERM is not set, we almost
certainly are not connected to something that can output emojis. In particular
the text console is unlikely to ever do it correctly.
So let's invert the check, and only write emojis if $TERM is set.
Fixes #25521.
Diffstat (limited to 'src/timesync')
0 files changed, 0 insertions, 0 deletions