 
     newCols = Math.max 1, Math.floor swidth  / charWidth
     newRows = Math.max 1, Math.floor sheight / charHeight
-
 
     @setSize newCols, newRows
 


    @updateAppSize()

    return  if not force and \
               swidth is @currentWidth and sheight is @currentHeight

    @scrollToBottom()


    if value then KD.utils.defer => @setKeyFocus()

  setSize: (x, y) ->

    return if x is @sizeX and y is @sizeY

    cursorLineIndex  = @screenBuffer.toLineIndex(@cursor.y)
