chalk/chalk

Can't show color in vscode integrated terminal

gyhyfj opened this issue · 1 comments

gyhyfj commented

Reproduct is https://github.com/vuejs/core/blob/main/scripts/verifyCommit.js

I'm not sure if it's problem of vscode in win 10, because if not in vscode, chalk works well.

Even if I set FORCE_COLOR to 1-3, if I console chalk.supportsColor in that file, I still get false and can't show color in vscode terminal, neither git bash nor powershell. However if I add one line in that file console.log('\x1b[0;31m' + '123' + '\x1b[0m');, 123 could be red as expected in terminal output.

gyhyfj commented

OK, it's totally vscode problem