Module: Kernel

Defined in:
lib/rubytext.rb

Overview

Stick stuff into Kernel for top level

Instance Method Summary collapse

Instance Method Details

#getchObject



286
287
288
# File 'lib/rubytext.rb', line 286

def getch
  X.getch
end

#p(*args) ⇒ Object



278
279
280
# File 'lib/rubytext.rb', line 278

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


274
275
276
# File 'lib/rubytext.rb', line 274

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

#puts(*args) ⇒ Object

private



270
271
272
# File 'lib/rubytext.rb', line 270

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

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



282
283
284
# File 'lib/rubytext.rb', line 282

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