disposeInlineTerminal method

Future<void> disposeInlineTerminal()

Releases the shared inlineTerminal if it was created.

Call once towards the end of the process; the live input subscription would otherwise keep the process from exiting.

Implementation

Future<void> disposeInlineTerminal() async {
  final terminal = _inlineTerminal;
  _inlineTerminal = null;
  await terminal?.dispose();
}