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

Automatically disable raw mode for non-tty #55

Closed
wants to merge 3 commits into from
Closed

Automatically disable raw mode for non-tty #55

wants to merge 3 commits into from

Conversation

certik
Copy link
Collaborator

@certik certik commented Oct 20, 2020

This change automatically disables raw mode when not connected to a
terminal. This seems to be a more useful default, which allows to
redirect input from a file, e.g., at a CI. Things will just work.

This change automatically disables raw mode when not connected to a
terminal. This seems to be a more useful default, which allows to
redirect input from a file, e.g., at a CI. Things will just work.
@wolfv
Copy link
Member

wolfv commented Oct 21, 2020

@certik I fixed the test on this one. The previous expected failure seems to work fine now.

@certik
Copy link
Collaborator Author

certik commented Oct 21, 2020

Yeah, this is related to #59, we need robust testing of the interactive prompt.

@MCWertGaming
Copy link
Collaborator

Hey @certik, wanted to quickly ask what the problem was with this PR. I have seen that (along with other things) in the code and would like to make those extra features available as well for the completeness. Also We should discuss how the input is handled anyway as the input function is not associated with the Terminal class anymore - so the input function is not aware of wether raw input is available or not. We should do that after the prompt is done.

@MCWertGaming
Copy link
Collaborator

MCWertGaming commented May 25, 2022

Moved to #172, #146, #139, #59.

@flagarde flagarde deleted the nontty branch July 6, 2023 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants