forceRepaint method

void forceRepaint()

Forces a repaint of the current view.

This bypasses the skip-if-unchanged optimization and forces a full re-render of the current view.

Useful when:

  • External factors have changed the terminal state
  • The view needs to be refreshed due to resize
  • Recovering from display corruption

Implementation

void forceRepaint() {
  if (!_running) return;
  _forceRender();
}