Closed galinkinlin closed 1 year ago
I too am having this exact same issue.
I'll try to have a look as soon as possible. Meantime if someone come up with a patch, please submit a PR.
The problem is in io/console. This can demonstrate it as well:
require 'io/console'
c = nil
while c != "\r" && c != "\n"
c = STDIN.getch
STDERR.puts c.ord
end
Great @orgads so it's better to wait for a fix at io/console itself.
https://github.com/ruby/io-console/issues/3 says it is solved and closed already.
Thank you all.
Hey there!
The above script requires an extra character to be entered in the command line after enter is hit on windows before it releases back to the rest of the script (I'm using CMD, but I believe it happens with conemu and powershell, too).