Permalink
Browse files

Fix typos in "1.9/io/console.rb"

Change "TOCGWINSZ" to "TIOCGWINSZ".
  • Loading branch information...
kyrylo committed Jan 30, 2013
1 parent 2230d85 commit 3a904148e33884f8dcd386c460cbe445bbd50693
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/ruby/1.9/io/console.rb
@@ -114,21 +114,21 @@ def getch(*)
def winsize
ws = LibC::Winsize.new
if LibC.ioctl(fileno, LibC::TIOCGWINSZ, :pointer, ws.pointer) != 0
- raise SystemCallError.new("ioctl(TOCGWINSZ)", FFI.errno)
+ raise SystemCallError.new("ioctl(TIOCGWINSZ)", FFI.errno)
end
[ ws[:ws_row], ws[:ws_col] ]
end
def winsize=(size)
ws = LibC::Winsize.new
if LibC.ioctl(fileno, LibC::TIOCGWINSZ, :pointer, ws.pointer) != 0
- raise SystemCallError.new("ioctl(TOCGWINSZ)", FFI.errno)
+ raise SystemCallError.new("ioctl(TIOCGWINSZ)", FFI.errno)
end
ws[:ws_row] = size[0]
ws[:ws_col] = size[1]
if LibC.ioctl(fileno, LibC::TIOCSWINSZ, :pointer, ws.pointer) != 0
- raise SystemCallError.new("ioctl(TOCSWINSZ)", FFI.errno)
+ raise SystemCallError.new("ioctl(TIOCSWINSZ)", FFI.errno)
end
end

0 comments on commit 3a90414

Please sign in to comment.