Skip to content

Commit 8650842

Browse files
Tweaking (#5)
1 parent c303b8f commit 8650842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ps/src/main/java/io/github/alexarchambault/windowsansi/WindowsAnsiPs.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public final class WindowsAnsiPs {
4545

4646
// not sure what happens on Windows versions that don't support ANSI mode
4747
public static void setup() throws InterruptedException, IOException {
48-
if (isWindows) {
48+
if (isWindows && System.console() != null) {
4949
PowershellRunner.runScript(script);
5050
}
5151
}

0 commit comments

Comments
 (0)