Module: WindowIO
- Defined in:
- output.rb
Instance Method Summary collapse
-
#getch ⇒ Object
FIXME These don't/can't honor @started flag…
-
#gets ⇒ Object
still needs improvement.
- #p(*args) ⇒ Object
- #print(*args) ⇒ Object
- #putch(ch, r: nil, c: nil, fx: nil) ⇒ Object
-
#puts(*args) ⇒ Object
Doesn't affect STDOUT.puts, etc.
- #rcprint(r, c, *args) ⇒ Object
Instance Method Details
#getch ⇒ Object
FIXME These don't/can't honor @started flag…
328 329 330 |
# File 'output.rb', line 328 def getch Curses.getch end |
#gets ⇒ Object
still needs improvement
332 333 334 335 |
# File 'output.rb', line 332 def gets # still needs improvement recv = RubyText.started ? $stdscr : Kernel recv.gets end |
#p(*args) ⇒ Object
316 317 318 319 |
# File 'output.rb', line 316 def p(*args) recv = RubyText.started ? $stdscr : Kernel recv.p(*args) end |
#print(*args) ⇒ Object
311 312 313 314 |
# File 'output.rb', line 311 def print(*args) recv = RubyText.started ? $stdscr : Kernel recv.print(*args) end |
#putch(ch, r: nil, c: nil, fx: nil) ⇒ Object
337 338 339 340 341 342 |
# File 'output.rb', line 337 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 |