Module: Kernel

Defined in:
lib/output.rb

Overview

Stick stuff into Kernel for top level

Instance Method Summary collapse

Instance Method Details

#getchObject



157
158
159
# File 'lib/output.rb', line 157

def getch
  X.getch
end

#p(*args) ⇒ Object



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

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


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

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

#puts(*args) ⇒ Object

Doesn’t affect STDOUT.puts, etc.



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

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

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



153
154
155
# File 'lib/output.rb', line 153

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