sendSpecialKey method

void sendSpecialKey(
  1. KeyType type
)

Sends a KeyMsg for a special key (e.g. enter, escape, arrow keys).

Implementation

void sendSpecialKey(terminal_keys.KeyType type) {
  _ensureRunning();
  _program!.send(KeyMsg(terminal_keys.Key(type)));
  _syncView();
}