Flushes any buffered output.
@override Future<void> flush() async { if (!_initialized) return; _flushInternal(); await terminal.flush(); }