code: func resizeAndRender(w *Window) {
  	// render window
  	if w != nil {
  		_ = termbox.Clear(bg, bg)
  		maxX, maxY = termbox.Size()
  
  		w.resize(maxX, maxY)
  		w.render()
  
  		// display all the things
  		flush()
  	}
  }
docs: // resizeAndRender resizes a window and renders it.