Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect cygwin #32

Closed
wants to merge 1 commit into from
Closed

Detect cygwin #32

wants to merge 1 commit into from

Conversation

dkocher
Copy link

@dkocher dkocher commented Jan 13, 2015

No description provided.

@@ -100,6 +104,11 @@ public void close() throws IOException {
};
}

private static boolean isCygwin(){
String term = System.getenv("TERM");
return (term != null && term.equals("cygwin"));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm no Cygwin expert, but I've been testing JLine2/Jansi on Cygwin for Jython 2.7. On mintty, which is the default terminal for current Cygwin, TERM is "xterm"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also believe this should say "xterm", which is what TERM is set to in MSYS(2) / Git for Windows, too. I'll post a follow-up PR which fixes this.

@sschuberth sschuberth mentioned this pull request Mar 3, 2016
@sschuberth
Copy link
Contributor

My follow-up which also resolves the minor conflict is at PR #45.

@chirino chirino closed this Apr 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants