Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
fix: updated supportsColor reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 10, 2018
1 parent be7c8a9 commit 0e5b0e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/action/spinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const spinners = require('./spinners')

function color(s: string): string {
if (!supportsColor) return s
let has256 = supportsColor.has256 || (process.env.TERM || '').indexOf('256') !== -1
let has256 = supportsColor.stdout.has256 || (process.env.TERM || '').indexOf('256') !== -1
return has256 ? `\u001b[38;5;104m${s}${deps.ansiStyles.reset.open}` : chalk.magenta(s)
}

Expand Down

0 comments on commit 0e5b0e9

Please sign in to comment.