diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-04-23 15:16:18 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-04-23 15:16:18 +0200 |
commit | ef4d3fc111c6b6c6f731a1f867c839d4adcf6e8e (patch) | |
tree | 6896c0f5e63f002f458d7cafd9be8a48fd1b049a /src/libutil/util.hh | |
parent | c7af247beacd418e6f2c4d33dffc35299101cd12 (diff) | |
parent | c9d0cf7e02d4b3af3c027d7d74d5caa3c8963d26 (diff) |
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r-- | src/libutil/util.hh | 10 |
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[] = "├───"; |