Module: Kernel

Defined in:
lib/output.rb

Overview

Stick stuff into Kernel for top level

Instance Method Summary collapse

Instance Method Details

#getchObject



149
150
151
# File 'lib/output.rb', line 149

def getch
  X.getch
end

#p(*args) ⇒ Object



141
142
143
# File 'lib/output.rb', line 141

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


137
138
139
# File 'lib/output.rb', line 137

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

#puts(*args) ⇒ Object

Doesn’t affect STDOUT.puts, etc.



133
134
135
# File 'lib/output.rb', line 133

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

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



145
146
147
# File 'lib/output.rb', line 145

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