From d08a5128063fd06ea80915d38cc29ac07015ff0e Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 29 Jun 2013 23:07:15 +0200 Subject: [PATCH] Set DEFAULT_PRE_STRING to red. Bright red doesn't work in GNU/Linux's console. --- README | 3 +-- src/constants.h | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README b/README index e298a04..a99edfa 100644 --- a/README +++ b/README @@ -85,8 +85,7 @@ A default setup could look like this: The following additional environment variables are available: - 'COLORED_STDERR_PRE' - String to write before each write to stderr, defaults to "\033[91m" (bright - red). + String to write before each write to stderr, defaults to "\033[31m" (red). - 'COLORED_STDERR_POST' String to write after each write to stderr, defaults to "\033[0m" (reset color). diff --git a/src/constants.h b/src/constants.h index 4cc69ca..3e41261 100644 --- a/src/constants.h +++ b/src/constants.h @@ -28,8 +28,8 @@ #define ENV_NAME_PRIVATE_FDS "COLORED_STDERR_PRIVATE_FDS" /* Strings written before/after each matched function. */ -#define DEFAULT_PRE_STRING "\033[91m" -#define DEFAULT_POST_STRING "\033[0m" +#define DEFAULT_PRE_STRING "\033[31m" /* red */ +#define DEFAULT_POST_STRING "\033[0m" /* default */ /* Number of elements to allocate statically. Highest descriptor observed in * normal use was 255 (by bash), which yielded this limit to prevent -- 2.43.2