[systemd-bugs] [Bug 64737] RFE: add option to optionally turn of color output in systemd tools

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu May 26 16:12:52 UTC 2016


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

Rob Nagler <freedesktop-zgkao at q33.us> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #8 from Rob Nagler <freedesktop-zgkao at q33.us> ---
Thank you for fixing this, but I do have a problem with the solution.

Today, I finally got fed up with systemctl saying "WARNING: terminal is not
fully functional" even though I already know that, having set $TERM to "dumb"
in my rc file. One could argue that error is the fault of less, but
systemctl/etc. also should respect $TERM, And, while it is handling the case of
no color, it shouldn't call less unless $PAGER or $SYSTEMD_PAGER is set
explicitly.

It is unreasonable for users to have to discover and to configure Yet Another
Environment Variable[1] when $TERM is set correctly to dumb, which has been a
de facto standard on Unix since 1978.

In my particular case, I use Emacs shells (not terminals) for system
interactions. There are, of course, plenty of other reasons programs should
respect $TERM. The primary one being: It's correct. :)

[1] http://www.joelonsoftware.com/uibook/chapters/fog0000000059.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-bugs/attachments/20160526/3642e665/attachment.html>


More information about the systemd-bugs mailing list