Skip to content

Commit

Permalink
Fix color codepoints
Browse files Browse the repository at this point in the history
  • Loading branch information
vlstill committed Feb 16, 2023
1 parent 0f9981d commit e792401
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ limitations under the License.
namespace Util {

// colors to pretty print messages
constexpr char ANSI_RED[] = "\\e[31m";
constexpr char ANSI_BLUE[] = "\\e[34m";
constexpr char ANSI_CLR[] = "\\e[0m";
// \e is non-standard escape sequence, use codepoint \33 instead
constexpr char ANSI_RED[] = "\33[31m";
constexpr char ANSI_BLUE[] = "\33[34m";
constexpr char ANSI_CLR[] = "\33[0m";

/// Checks if stderr is redirected to a file
/// Check is done only once and then saved to a static variable
Expand Down

0 comments on commit e792401

Please sign in to comment.