diff options
Diffstat (limited to 'sample/cbreak.rb')
-rw-r--r-- | sample/cbreak.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/cbreak.rb b/sample/cbreak.rb index 5d2d849512..cbb15d2f41 100644 --- a/sample/cbreak.rb +++ b/sample/cbreak.rb @@ -15,7 +15,7 @@ end def set_cbreak (on) tty = "\0" * 256 - $stdin.ioctl(TIOCGETP, tty) + STDIN.ioctl(TIOCGETP, tty) ttys = tty.unpack("C4 S") if on ttys[4] |= CBREAK @@ -25,7 +25,7 @@ def set_cbreak (on) ttys[4] |= ECHO end tty = ttys.pack("C4 S") - $stdin.ioctl(TIOCSETP, tty) + STDIN.ioctl(TIOCSETP, tty) end cbreak(); |