Use getbyte and not getc

This commit is contained in:
mattetti 2010-05-17 19:10:10 -07:00 committed by Max Howell
parent ebbc2e5b3f
commit 4c0545619d

View File

@ -72,7 +72,7 @@ end
def getc # NOTE only tested on OS X
system "/bin/stty raw -echo"
STDIN.getc
STDIN.getbyte
ensure
system "/bin/stty -raw echo"
end