quit static method

Cmd quit()

A command that signals the program to quit.

This triggers a graceful shutdown sequence:

  1. Terminal state is restored
  2. Alt screen is exited (if used)
  3. Cursor is shown
  4. Program exits
KeyMsg(key: Key(type: KeyType.runes, runes: [0x71])) => // 'q'
  (this, Cmd.quit()),

Implementation

static Cmd quit() => const Cmd(_quit);