3 ms·
One question this leaves me with is regarding other ANSI escapes. Would a user with NO_COLOR be okay with bold, invert, italic, underline, or other effects? I’m
by cturtle 5y ago
One question this leaves me with is regarding other ANSI escapes. Would a user with NO_COLOR be okay with bold, invert, italic, underline, or other effects? I’m happy to add support for NO_COLOR to the tool I maintain, but I think this proposal should be more clear in this regard.
I would assume that COLOR implies that only color escapes should be disabled, but the description also mentions “plain” output.
- lokedhs 5y agoThis problem was solved using the TERM environment variable, and it will just work when people use terminfo (and libraries that use it, such as ncurses). The problem is when people use explicit escape codes in their code rather than using libraries that solved this problem all the way back in the 80's. Yes, I'm somewhat grumpy about this because far too many times I have found log files filled with escape codes, or colours that are absolutely unreadable when using a terminal with white background.