LineEditor constructor
LineEditor({})
Implementation
LineEditor({
required Stream<List<int>> input,
required void Function(String) output,
required FutureOr<void> Function(String line) onLine,
required CommandHistory history,
this.interactive = true,
void Function(bool raw)? setRawMode,
void Function()? onInterrupt,
void Function()? onEof,
void Function(List<int> bytes)? onRaw,
Future<List<String>> Function(String word, bool isCommand)? onComplete,
}) : _input = input,
_output = output,
_onLine = onLine,
_history = history,
_setRawMode = setRawMode,
_onInterrupt = onInterrupt,
_onEof = onEof,
_onRaw = onRaw,
_onComplete = onComplete {
_histIndex = _history.entries.length;
}