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

Correctly handle modifier keys for TTY stdin on Windows #2892

Merged
merged 1 commit into from
Oct 3, 2018

Conversation

chalcolith
Copy link
Member

Standard input on Windows was hanging when a modifier key (CTRL, ALT or SHIFT) was pressed. This change correctly handles the console keydown event where there is no actual character value.

Fixes #2891

Standard input on Windows was hanging when a modifier key (CTRL, ALT or SHIFT) was pressed.  This change correctly handles the console keydown event where there is no actual character value.

Fixes ponylang#2891
@chalcolith chalcolith added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Oct 2, 2018
Copy link
Contributor

@mfelsche mfelsche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

What do you think about another test suite, that compiles and runs some pony program and interacts with it, piping something to it, sending a signal etc. for testing this. Maybe in plain bash, maybe in python.

The reason for this is that in our current test suites we are always testing in-process, not how a pony process behaves.

@chalcolith
Copy link
Member Author

Just piping to a program wouldn't catch this particular case; we'd need to write a Windows-specific wrapper that simulates keystroke events. That seems like too much work right now.

@jemc jemc merged commit 791a2dc into ponylang:master Oct 3, 2018
@jemc jemc deleted the fix_2891 branch October 3, 2018 19:41
ponylang-main added a commit that referenced this pull request Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants