Module: Kernel

Defined in:
lib/output.rb

Overview

Stick stuff into Kernel for top level

Instance Method Summary collapse

Instance Method Details

#getchObject



166
167
168
# File 'lib/output.rb', line 166

def getch
  X.getch
end

#p(*args) ⇒ Object



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

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


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

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

#puts(*args) ⇒ Object

Doesn’t affect STDOUT.puts, etc.



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

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

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



162
163
164
# File 'lib/output.rb', line 162

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