textInput method

void textInput(
  1. String text
)

Sends regular text input to the underlying program.

See also:

Implementation

void textInput(String text) {
  assert(() {
    // ignore: avoid_print
    print('[xterm:Terminal] textInput text="${text.replaceAll('\n', '\\n')}" onOutput=${onOutput != null}');
    return true;
  }());
  onOutput?.call(text);
}