Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ruby/stdlib/io/console.rb
Original file line number Diff line number Diff line change
@@ -75,6 +75,7 @@ def ttymode
end
termios
end
private :ttymode

def ttymode_yield(block, &setup)
begin
@@ -86,6 +87,7 @@ def ttymode_yield(block, &setup)
end
end
end
private :ttymode_yield

TTY_RAW = Proc.new do |t|
LibC.cfmakeraw(t)
@@ -269,7 +271,7 @@ def oflush
def ioflush
end
end
elsif !IO.method_defined?:ttymode
elsif !IO.private_method_defined? :ttymode
warn "io/console on JRuby shells out to stty for most operations"

# Non-Windows assumes stty command is available

0 comments on commit 7274ccb

Please sign in to comment.