1
1
Fork 0
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:
Ivan Shapovalov 2024-03-01 23:13:00 +01:00
parent d9fc4bf5c5
commit 8c1eeb4681
8 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@
namespace nix {
bool shouldANSI()
bool isTTY()
{
return isatty(STDERR_FILENO)
&& getEnv("TERM").value_or("dumb") != "dumb"