Built motion from commit 10af8726.|2.6.34
[motion2.git] / legacy-libs / gauge / has-color.js
1 'use strict'
2
3 module.exports = isWin32() || isColorTerm()
4
5 function isWin32 () {
6   return process.platform === 'win32'
7 }
8
9 function isColorTerm () {
10   var termHasColor = /^screen|^xterm|^vt100|color|ansi|cygwin|linux/i
11   return !!process.env.COLORTERM || termHasColor.test(process.env.TERM)
12 }