summaryrefslogtreecommitdiff
path: root/it_debug.class
diff options
context:
space:
mode:
authorChristian Helbling2011-04-13 16:25:17 +0000
committerChristian Helbling2011-04-13 16:25:17 +0000
commit2075dd38e8ff4e942138d88894014c2e9114d23d (patch)
treebf4f3f8b180e63645473a954dd1a4cb7df23a703 /it_debug.class
parent5e8ba6473ff72fffcdb0eacbeb00df0e18f66f98 (diff)
downloaditools-2075dd38e8ff4e942138d88894014c2e9114d23d.tar.gz
itools-2075dd38e8ff4e942138d88894014c2e9114d23d.tar.bz2
itools-2075dd38e8ff4e942138d88894014c2e9114d23d.zip
added colorscheme for dark console backgrounds
Diffstat (limited to 'it_debug.class')
-rw-r--r--it_debug.class7
1 files changed, 1 insertions, 6 deletions
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 = "</span>";
}
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);