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

TerminalInfo interactive doesn't check STDOUT / STDERR #94

Closed
b8b opened this issue Mar 29, 2023 · 1 comment · Fixed by #96
Closed

TerminalInfo interactive doesn't check STDOUT / STDERR #94

b8b opened this issue Mar 29, 2023 · 1 comment · Fixed by #96

Comments

@b8b
Copy link

b8b commented Mar 29, 2023

val interactive: Boolean get() = inputInteractive && inputInteractive

The code seems to disagree with the comment.
We can easily work around by using terminal.info.inputInteractive && terminal.info.outputInteractive

The bigger issue I have is I try to use Terminal().forStdErr() but see no way to check if STDERR is interactive.

@ajalt
Copy link
Owner

ajalt commented Mar 29, 2023

Yep, that's a typo. I'll get that fixed.

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 a pull request may close this issue.

2 participants