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 #232: Do not generate any input when handling Ctrl-Z #669

Merged
merged 1 commit into from
Jul 14, 2017

Conversation

jonas
Copy link
Owner

@jonas jonas commented Jul 14, 2017

Move the special case of Ctrl-Z introduced in
167d59e so no input is generated by
get_input.


@rolandwalker does this seem reasonable to you?

Move the special case of Ctrl-Z introduced in
167d59e so no input is generated by
get_input.
@rolandwalker
Copy link
Contributor

Seems reasonable, though the interplay here is difficult to work through.

It is odd to think that #232 couldn't be solved if tig was still using cbreak() instead of raw mode.

@jonas
Copy link
Owner Author

jonas commented Jul 14, 2017

It probably could have been solved, but I couldn't find a way to detect and flush the TTY input stream. You change to use raw mode made a fix more obvious.

@jonas jonas merged commit 4fb38bf into master Jul 14, 2017
@jonas jonas deleted the fix-restoring-from-suspend branch July 14, 2017 22:39
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