1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-12 05:26:02 +01:00

Merge branch 'error-format' of https://github.com/bburdette/nix

This commit is contained in:
Eelco Dolstra 2020-04-22 15:29:10 +02:00
commit 16e3bf4537
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
9 changed files with 370 additions and 14 deletions

View file

@ -2,6 +2,8 @@
#include "types.hh"
#include "logging.hh"
#include "ansicolor.hh"
#include "error.hh"
#include <sys/types.h>
#include <sys/stat.h>
@ -446,15 +448,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[] = "├───";