-
Notifications
You must be signed in to change notification settings - Fork 418
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
Approximate istty()
by checking System.console() != null
#79
Comments
istty()
by reflection on System.console() != null
istty()
by checking System.console() != null
|
Hi, It seems that in JDK 22, checking is It still doesn't allow to be specific about which side is interactive or not though. |
@bric3 Please refer to #1104, #2083 and #2084 ; is there still an issue? |
Oh thank you @remkop I wasn't looking for these keyword so I didn't find them. No issue I was just exploring available options to detect if stdin or stdout were interactive (e.g. when piping). And I stumbled on this PR so I made the comment, but I'm way late as other work has been done. |
Use reflection to avoid introducing dependency on Java 6.
As indicated here, this is not entirely correct, but still better than no check at all...
The text was updated successfully, but these errors were encountered: