Module: Kernel

Defined in:
lib/rubytext.rb

Overview

Stick stuff into Kernel for top level

Instance Method Summary collapse

Instance Method Details

#getchObject



389
390
391
# File 'lib/rubytext.rb', line 389

def getch
  X.getch
end

#p(*args) ⇒ Object



381
382
383
# File 'lib/rubytext.rb', line 381

def p(*args)
  $stdscr.p(*args)
end


377
378
379
# File 'lib/rubytext.rb', line 377

def print(*args)
  $stdscr.print(*args)
end

#puts(*args) ⇒ Object

Doesn’t affect STDOUT.puts, etc.



373
374
375
# File 'lib/rubytext.rb', line 373

def puts(*args)       # Doesn't affect STDOUT.puts, etc.
  $stdscr.puts(*args)
end

#rcprint(r, c, *args) ⇒ Object



385
386
387
# File 'lib/rubytext.rb', line 385

def rcprint(r, c, *args)
  $stdscr.rcprint r, c, *args
end