hasPendingEscape property
bool
get
hasPendingEscape
Whether the only buffered input is a lone ESC: either a bare Escape
keypress or the start of a sequence whose rest has not arrived yet.
LoneEscapeTimer resolves it by calling flush after escapeTimeout
if no more input arrived meanwhile.
Implementation
bool get hasPendingEscape => _pending.length == 1 && _pending.first == 0x1b;