Module: Kernel

Defined in:
lib/rubytext.rb

Overview

Stick stuff into Kernel for top level

Instance Method Summary collapse

Instance Method Details

#getchObject



336
337
338
# File 'lib/rubytext.rb', line 336

def getch
  X.getch
end

#p(*args) ⇒ Object



328
329
330
# File 'lib/rubytext.rb', line 328

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


324
325
326
# File 'lib/rubytext.rb', line 324

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

#puts(*args) ⇒ Object

private



320
321
322
# File 'lib/rubytext.rb', line 320

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

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



332
333
334
# File 'lib/rubytext.rb', line 332

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