From 8a82c09c2a5467355d72b30874ce73b01fabde26 Mon Sep 17 00:00:00 2001 From: Tom de Bruijn Date: Fri, 16 Jun 2017 13:01:19 +0200 Subject: [PATCH] Fix "Press any key" on Microsoft Windows `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. --- lib/appsignal/cli/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/appsignal/cli/helpers.rb b/lib/appsignal/cli/helpers.rb index 8b965c2f6..425a6a529 100644 --- a/lib/appsignal/cli/helpers.rb +++ b/lib/appsignal/cli/helpers.rb @@ -29,7 +29,7 @@ def periods def press_any_key puts print " Ready? Press any key:" - stdin.getch + stdin.getc puts puts end