From: Simon Ruderich Date: Sat, 29 Jun 2013 21:07:15 +0000 (+0200) Subject: Set DEFAULT_PRE_STRING to red. X-Git-Tag: 0.1~19 X-Git-Url: https://ruderich.org/simon/gitweb/?p=coloredstderr%2Fcoloredstderr.git;a=commitdiff_plain;h=d08a5128063fd06ea80915d38cc29ac07015ff0e Set DEFAULT_PRE_STRING to red. Bright red doesn't work in GNU/Linux's console. --- 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