Add ENV_NAME_FORCE_WRITE to force writes to non-tty devices.

This commit is contained in:
Simon Ruderich
2013-06-01 21:13:23 +02:00
parent 7d4d8e0784
commit 96710bc3fa
3 changed files with 19 additions and 6 deletions

View File

@@ -24,6 +24,7 @@
#define ENV_NAME_FDS "COLORED_STDERR_FDS"
#define ENV_NAME_PRE_STRING "COLORED_STDERR_PRE"
#define ENV_NAME_POST_STRING "COLORED_STDERR_POST"
#define ENV_NAME_FORCE_WRITE "COLORED_STDERR_FORCE_WRITE"
/* Strings written before/after each matched function. */
#define DEFAULT_PRE_STRING "\e[91m"