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

Add forced-out and forcer-err to force the system console to use the output / error stream (fixes #856) #884

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

gnodet
Copy link
Member

@gnodet gnodet commented Oct 25, 2023

JLine tries to detect a valid output stream, but in cases where output is redirected using a tee command, the output stream is valid, even if not a real system stream.
Using builder.setSystemOutput(SystemOutput.ForcedSysOut) or using org.jline.terminal.output=forced-out system property solves the problem.

…output / error stream (fixes jline#856)

JLine tries to detect a valid output stream, but in cases where output is redirected using a tee command, the output stream is valid, even if not a real system stream.
Using builder.setSystemOutput(SystemOutput.ForcedSysOut) or using `org.jline.terminal.output=forced-out` system property solves the problem.
@gnodet gnodet added this to the 3.24.0 milestone Oct 25, 2023
@gnodet gnodet merged commit d4bf37c into jline:master Oct 25, 2023
3 checks passed
@gnodet gnodet deleted the i856 branch October 25, 2023 10:24
@gnodet gnodet mentioned this pull request Oct 25, 2023
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.

None yet

1 participant