nette/nette — pull request #625 by juzna (2012-04-19 09:23:41+00:00)
Title: Debugger: use colors in dump only if terminal supports it

Some terminals **don't** support colors even on linux (e.g. built-in terminal in PhpStorm) and then we see very ugly mess of characters. It's better to check against terminal type being used, which is mostly *xterm* or *xterm-something* (like *xterm-256color*).

When no terminal info is given (on windows or in PhpStorm's build-in terminal), getenv returns false which suppresses colors.