Skip to content

Commit

Permalink
Fix "Press any key" on Microsoft Windows
Browse files Browse the repository at this point in the history
`getch` throws a `Errno::EBADF: Bad file descriptor` error on Microsoft
Windows. I am unable to fix that. Using `getc` creates the same behavior
and also works on Microsoft Windows.

This fixes the "Press any key" prompts on Microsoft's OS, fixing the
installer prompts.
  • Loading branch information
tombruijn committed Jun 16, 2017
1 parent eedefdb commit 8a82c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/appsignal/cli/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def periods
def press_any_key
puts
print " Ready? Press any key:"
stdin.getch
stdin.getc
puts
puts
end
Expand Down

0 comments on commit 8a82c09

Please sign in to comment.