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

Require console so we can getch in windows #241

Merged
merged 1 commit into from
Jul 5, 2018
Merged

Conversation

patrobinson
Copy link
Contributor

@patrobinson patrobinson commented Jun 13, 2018

On windows, STDIN.getch returns:

undefined method `getch' for #<IO:<STDIN>> (NoMethodError)
Did you mean?  getc
               gets

Unless we require io/console

Copy link
Contributor

@simpsora simpsora left a comment

Choose a reason for hiding this comment

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

Seems reasonable.

Copy link
Contributor

@jacobbednarz jacobbednarz left a comment

Choose a reason for hiding this comment

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

Assuming you want all of io/console here, 👍

@patrobinson patrobinson merged commit 1808f0f into master Jul 5, 2018
@patrobinson patrobinson deleted the fix-windows-getch branch July 5, 2018 21:07
patrobinson pushed a commit that referenced this pull request Jul 5, 2018
Fix prompter on Windows #241
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.

5 participants