Don't override windows blue when in xterm mode

This commit is contained in:
Wei Kin Huang 2015-04-17 13:27:48 -04:00
parent 04cb2d21ae
commit faa36fc134
3 changed files with 47 additions and 2 deletions

View file

@ -12,7 +12,7 @@ function Chalk(options) {
}
// use bright blue on Windows as the normal blue color is illegible
if (process.platform === 'win32') {
if (process.platform === 'win32' && !/^xterm/i.test(process.env.TERM)) {
ansiStyles.blue.open = '\u001b[94m';
}