aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-04-23 15:16:18 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-04-23 15:16:18 +0200
commitef4d3fc111c6b6c6f731a1f867c839d4adcf6e8e (patch)
tree6896c0f5e63f002f458d7cafd9be8a48fd1b049a /src/libutil/util.hh
parentc7af247beacd418e6f2c4d33dffc35299101cd12 (diff)
parentc9d0cf7e02d4b3af3c027d7d74d5caa3c8963d26 (diff)
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index d4d0b9f7e..7a846c131 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -2,6 +2,7 @@
#include "types.hh"
#include "logging.hh"
+#include "ansicolor.hh"
#include <sys/types.h>
#include <sys/stat.h>
@@ -450,15 +451,6 @@ std::string shellEscape(const std::string & s);
void ignoreException();
-/* Some ANSI escape sequences. */
-#define ANSI_NORMAL "\e[0m"
-#define ANSI_BOLD "\e[1m"
-#define ANSI_FAINT "\e[2m"
-#define ANSI_RED "\e[31;1m"
-#define ANSI_GREEN "\e[32;1m"
-#define ANSI_YELLOW "\e[33;1m"
-#define ANSI_BLUE "\e[34;1m"
-
/* Tree formatting. */
constexpr char treeConn[] = "├───";