Skip to content

Commit

Permalink
Cygwin pty is used when running with the default windows console, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Nov 17, 2016
1 parent 80b798e commit fef74c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/jline/utils/OSUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public class OSUtils {

public static final boolean IS_CYGWIN = IS_WINDOWS
&& System.getenv("PWD") != null
&& System.getenv("PWD").startsWith("/");
&& System.getenv("PWD").startsWith("/")
&& !"cygwin".equals(System.getenv("TERM"));

public static final boolean IS_OSX = System.getProperty("os.name").toLowerCase().contains("mac");

Expand Down

0 comments on commit fef74c3

Please sign in to comment.