Module: Kernel

Defined in:
lib/rubytext.rb

Overview

Stick stuff into Kernel for top level

Instance Method Summary collapse

Instance Method Details

#getchObject



308
309
310
# File 'lib/rubytext.rb', line 308

def getch
  X.getch
end

#p(*args) ⇒ Object



300
301
302
# File 'lib/rubytext.rb', line 300

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


296
297
298
# File 'lib/rubytext.rb', line 296

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

#puts(*args) ⇒ Object

private



292
293
294
# File 'lib/rubytext.rb', line 292

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

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



304
305
306
# File 'lib/rubytext.rb', line 304

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