Use getbyte and not getc
This commit is contained in:
parent
ebbc2e5b3f
commit
4c0545619d
@ -72,7 +72,7 @@ end
|
|||||||
|
|
||||||
def getc # NOTE only tested on OS X
|
def getc # NOTE only tested on OS X
|
||||||
system "/bin/stty raw -echo"
|
system "/bin/stty raw -echo"
|
||||||
STDIN.getc
|
STDIN.getbyte
|
||||||
ensure
|
ensure
|
||||||
system "/bin/stty -raw echo"
|
system "/bin/stty -raw echo"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user