Skip to content

Commit 3d2a2f5

Browse files
bedag-mooalexeagle
authored andcommitted
fix(@angular-devkit/core): detect mingw terminal as color capable (#11834)
restoring color to git-bash users under windows Fixes #11833
1 parent b578c2a commit 3d2a2f5

File tree

1 file changed

+2
-2
lines changed
  • packages/angular_devkit/core/src/terminal

1 file changed

+2
-2
lines changed

packages/angular_devkit/core/src/terminal/caps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ const ciVars = ['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'];
7777

7878

7979
function _getColorLevel(stream: Socket): number {
80-
if (stream && !stream.isTTY) {
80+
if (stream && !stream.isTTY && !_env.MSYSTEM) {
8181
return 0;
8282
}
8383

84-
if (_platform.startsWith('win32')) {
84+
if (_platform.startsWith('win32') && !_env.MSYSTEM) {
8585
// Node.js 7.5.0 is the first version of Node.js to include a patch to
8686
// libuv that enables 256 color output on Windows. Anything earlier and it
8787
// won't work. However, here we target Node.js 8 at minimum as it is an LTS

0 commit comments

Comments
 (0)