aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorYestin L. Harrison <yestin@ylh.io>2021-07-01 18:19:01 -0600
committerYestin L. Harrison <yestin@ylh.io>2021-07-01 18:19:01 -0600
commit20cce079f258dc3f62340ecd7b9de1bbd99ef814 (patch)
tree348b44b7537de6235e6a78914155c18f239166f6 /src/libutil/util.hh
parent139f7af5ec40ca75ad2ef9393c5029f0850105d9 (diff)
Respect TERM=dumb more consistently
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index f84d0fb31..a8dd4bd47 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -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,