mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 22:42:41 +01:00
treewide: shouldANSI() -> isTTY()
This commit is contained in:
parent
d9fc4bf5c5
commit
8c1eeb4681
8 changed files with 8 additions and 8 deletions
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace nix {
|
||||
|
||||
bool shouldANSI()
|
||||
bool isTTY()
|
||||
{
|
||||
return isatty(STDERR_FILENO)
|
||||
&& getEnv("TERM").value_or("dumb") != "dumb"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue