Module: Kernel

Defined in:
lib/output.rb

Overview

Stick stuff into Kernel for top level

Instance Method Summary collapse

Instance Method Details

#getchObject



176
177
178
# File 'lib/output.rb', line 176

def getch
  X.getch
end

#p(*args) ⇒ Object



168
169
170
# File 'lib/output.rb', line 168

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


164
165
166
# File 'lib/output.rb', line 164

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

#puts(*args) ⇒ Object

Doesn’t affect STDOUT.puts, etc.



160
161
162
# File 'lib/output.rb', line 160

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

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



172
173
174
# File 'lib/output.rb', line 172

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