mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
Respect TERM=dumb more consistently
This commit is contained in:
parent
139f7af5ec
commit
20cce079f2
4 changed files with 9 additions and 2 deletions
|
@ -1372,6 +1372,10 @@ void ignoreException()
|
|||
}
|
||||
}
|
||||
|
||||
bool shouldANSI()
|
||||
{
|
||||
return isatty(STDERR_FILENO) && getEnv("TERM").value_or("dumb") != "dumb";
|
||||
}
|
||||
|
||||
std::string filterANSIEscapes(const std::string & s, bool filterAll, unsigned int width)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue