diff --git a/packages/nx/src/tasks-runner/pseudo-terminal.ts b/packages/nx/src/tasks-runner/pseudo-terminal.ts index 974eacdd1b79c..db46e46a27110 100644 --- a/packages/nx/src/tasks-runner/pseudo-terminal.ts +++ b/packages/nx/src/tasks-runner/pseudo-terminal.ts @@ -196,6 +196,13 @@ function supportedPtyPlatform() { return true; } + // TODO: Re-enable Windows support when it's stable + // Currently, there's an issue with control chars. + // See: https://github.com/nrwl/nx/issues/22358 + if (process.env.NX_WINDOWS_PTY_SUPPORT !== 'true') { + return false; + } + let windowsVersion = os.release().split('.'); let windowsBuild = windowsVersion[2];