initialize method

void initialize()

Initializes the renderer.

Sets up the terminal for fullscreen rendering.

Implementation

void initialize() {
  if (_initialized) return;

  if (_options.altScreen) {
    terminal.enterAltScreen();
  }
  if (_options.hideCursor) {
    terminal.hideCursor();
  }
  terminal.clearScreen();
  _initialized = true;
}