module WindowIO
Public Instance Methods
getch()
click to toggle source
FIXME These don't/can't honor @started flag…
# File lib/output.rb, line 342 def getch Curses.getch end
gets()
click to toggle source
# File lib/output.rb, line 346 def gets # still needs improvement recv = RubyText.started ? $stdscr : Kernel recv.gets end
p(*args)
click to toggle source
# File lib/output.rb, line 330 def p(*args) recv = RubyText.started ? $stdscr : Kernel recv.p(*args) end
print(*args)
click to toggle source
# File lib/output.rb, line 325 def print(*args) recv = RubyText.started ? $stdscr : Kernel recv.print(*args) end
putch(ch, r: nil, c: nil, fx: nil)
click to toggle source
# File lib/output.rb, line 351 def putch(ch, r: nil, c: nil, fx: nil) r, c = STDSCR.rc r ||= r0 c ||= c0 STDSCR.putch(ch, r: r, c: c, fx: fx) end
puts(*args)
click to toggle source
# File lib/output.rb, line 320 def puts(*args) # Doesn't affect STDOUT.puts, etc. recv = RubyText.started ? $stdscr : Kernel recv.puts(*args) end
rcprint(r, c, *args)
click to toggle source
# File lib/output.rb, line 335 def rcprint(r, c, *args) recv = RubyText.started ? $stdscr : Kernel recv.rcprint r, c, *args end