From 2075dd38e8ff4e942138d88894014c2e9114d23d Mon Sep 17 00:00:00 2001 From: Christian Helbling Date: Wed, 13 Apr 2011 16:25:17 +0000 Subject: added colorscheme for dark console backgrounds --- it_debug.class | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'it_debug.class') diff --git a/it_debug.class b/it_debug.class index 9d2ff5d..0f43edb 100644 --- a/it_debug.class +++ b/it_debug.class @@ -88,12 +88,7 @@ function dump($args) $noblue = ""; } else if (posix_isatty(STDOUT)) - { - $blue = "\033[34m"; - $noblue = "\033[m"; - $red = "\033[31m"; - $nored = "\033[m"; - } + list($blue, $noblue, $red, $nored) = getenv('IT_ED_BRIGHT') ? array("\033[34m", "\033[m", "\033[33m", "\033[m") : array("\033[34m", "\033[m", "\033[31m", "\033[m"); @fseek(STDOUT, 0, SEEK_END); # Work around PHP bug 49819: posix_isatty seeks to start $src = it_debug::srcline(1); -- cgit v1.2.3