1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 06:21:14 +02: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

@ -50,7 +50,7 @@ std::string renderMarkdownToTerminal(std::string_view markdown)
if (!rndr_res)
throw Error("allocation error while rendering Markdown");
return filterANSIEscapes(std::string(buf->data, buf->size), !shouldANSI());
return filterANSIEscapes(std::string(buf->data, buf->size), !isTTY());
#else
return std::string(markdown);
#endif