mirror of
https://github.com/NixOS/nix
synced 2025-06-29 06:21:14 +02:00
treewide: shouldANSI() -> isTTY()
This commit is contained in:
parent
d9fc4bf5c5
commit
8c1eeb4681
8 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue