Skip to content

Require console so we can getch in windows#241

Merged
patrobinson merged 1 commit intomasterfrom
fix-windows-getch
Jul 5, 2018
Merged

Require console so we can getch in windows#241
patrobinson merged 1 commit intomasterfrom
fix-windows-getch

Conversation

@patrobinson
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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