init
parser
  • Init gobble mode. After parsing the defined number of input keys, or until provided terminator key, execute endCmd with attached parsed input. Escape cancels the mode and returns to normal mode.

    Parameters

    • numKeysOrTerminator: string
    • endCommand: string
    • ...args: string[]

    Returns void

  • Receive keypress. If applicable, execute a command.

    Parameters

    Returns { exstr: string; isMatch: boolean; keys: any[] }