Method: Redwood::Buffer#resize

Defined in:
lib/sup/buffer.rb

#resize(rows, cols) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/sup/buffer.rb', line 34

def resize rows, cols
  return if cols == @width && rows == @height
  @width = cols
  @height = rows
  @dirty = true
  mode.resize rows, cols
end