forked from lix-project/lix
commit
4b78a66bc5
|
@ -1515,7 +1515,7 @@ bool shouldANSI()
|
||||||
{
|
{
|
||||||
return isatty(STDERR_FILENO)
|
return isatty(STDERR_FILENO)
|
||||||
&& getEnv("TERM").value_or("dumb") != "dumb"
|
&& getEnv("TERM").value_or("dumb") != "dumb"
|
||||||
&& !getEnv("NO_COLOR").has_value();
|
&& !(getEnv("NO_COLOR").has_value() || getEnv("NOCOLOR").has_value());
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string filterANSIEscapes(std::string_view s, bool filterAll, unsigned int width)
|
std::string filterANSIEscapes(std::string_view s, bool filterAll, unsigned int width)
|
||||||
|
|
Loading…
Reference in a new issue