Set DEFAULT_PRE_STRING to red.

Bright red doesn't work in GNU/Linux's console.
This commit is contained in:
Simon Ruderich
2013-06-29 23:07:15 +02:00
parent a685b825aa
commit d08a512806
2 changed files with 3 additions and 4 deletions

3
README
View File

@@ -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).

View File

@@ -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