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

fix(accessibility): stop scanning on EOF from stdin #440

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aybabtme
Copy link

@aybabtme aybabtme commented Oct 25, 2024

If a user send EOF to stdin (Ctrl-C) in the terminal while in accessibility mode, the program gets stuck in a loop printing errors about invalid input:

Example:
CleanShot 2024-10-25 at 19 19 41
"oh nooo....." screams the terminal, as it decides into a demented spiral

This change isn't ideal (it'd be better to somehow bubble up an error that stops execution) but it's better than getting the process stuck in a loop. An alternative that doesn't change the signature would be to panic, or os.Exit or something else. Happy with whatever.

@aybabtme aybabtme changed the title accessibility: stop scanning on EOF from stdin fix(accessibility): stop scanning on EOF from stdin Oct 25, 2024
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.

2 participants