start method
void
start()
Implementation
void start() {
if (interactive) {
stdin
..echoMode = false
..lineMode = false;
write('\x1B[?2004h');
}
final parser = KeyParser();
_input = stdin
.transform(const Utf8Decoder(allowMalformed: true))
.listen(
(chunk) => interactive ? parser.parse(chunk).forEach(_dispatch) : _addLines(chunk),
onDone: _closeInput,
);
_interrupts = ProcessSignal.sigint.watch().listen((_) => _dispatch(const KeyEvent(Key.ctrlC)));
}