     DispatchUtils.gui {
 //      NSLog("\(#function): \(width):\(height)")
       self.grid.resize(Size(width: Int(width), height: Int(height)))
-      self.needsDisplay = true
+      self.markForRenderWholeView()
     }
   }
 
   public func clear() {
     DispatchUtils.gui {
       self.grid.clear()
-      self.needsDisplay = true
+      self.markForRenderWholeView()
     }
   }
 


  fileprivate func markForRender(position: Position) {
    self.markForRender(row: position.row, column: position.column)
  }

  fileprivate func markForRender(row: Int, column: Int) {
//    Swift.print("\(#function): \(row):\(column)")
    self.setNeedsDisplay(self.cellRectFor(row: row, column: column))
  }

  fileprivate func markForRender(screenCursor position: Position) {

    self.grid.moveCursor(screenCursor)
  }

  fileprivate func markForRender(cellPosition position: Position) {
    self.markForRender(position: position)

