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

Crashes can leave console in mode where it does not echo characters #2360

Open
hostilefork opened this issue Feb 2, 2019 · 0 comments
Open

Comments

@hostilefork
Copy link
Member

On Linux/Mac, in order to accomplish line editing (e.g. the ability to erase stuff that has been typed, like when you cursor through command line history) TERMIOS is used to switch into a mode where explicit handling of keystroke echoing is done. Sometimes if there's a crash it doesn't get the message to turn it back on:

https://askubuntu.com/a/172747

The typical answer is to type (without feedback as you're typing it) reset or stty sane.

But this could probably be mitigated by flipping some bit in the termios interface when a command starts to start echoing again...then flip it back when you run INPUT, then flip it back off...in anticipation of a crash.

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

No branches or pull requests

1 participant