onExit method

  1. @protected
void onExit()
inherited

Called when a second Ctrl-C confirms exit.

The default performs a graceful shutdown via shutdownTuiApp, which runs the terminal backend's exit hook. Override to run app-specific teardown (e.g. stopping a server or Docker) before the app exits.

Implementation

@protected
void onExit() => shutdownTuiApp();