We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c303b8f commit 8650842Copy full SHA for 8650842
ps/src/main/java/io/github/alexarchambault/windowsansi/WindowsAnsiPs.java
@@ -45,7 +45,7 @@ public final class WindowsAnsiPs {
45
46
// not sure what happens on Windows versions that don't support ANSI mode
47
public static void setup() throws InterruptedException, IOException {
48
- if (isWindows) {
+ if (isWindows && System.console() != null) {
49
PowershellRunner.runScript(script);
50
}
51
0 commit comments