1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

Respect TERM=dumb more consistently

This commit is contained in:
Yestin L. Harrison 2021-07-01 18:19:01 -06:00
parent 139f7af5ec
commit 20cce079f2
4 changed files with 9 additions and 2 deletions

View file

@ -482,6 +482,9 @@ constexpr char treeLast[] = "└───";
constexpr char treeLine[] = "";
constexpr char treeNull[] = " ";
/* Determine whether ANSI escape sequences are appropriate for the
present output. */
bool shouldANSI();
/* Truncate a string to 'width' printable characters. If 'filterAll'
is true, all ANSI escape sequences are filtered out. Otherwise,