onOutputBytes property
Called with the exact bytes of each chunk the terminal sends to the program, before onOutput is called with the same chunk as text. Text produced in Dart (textInput, keyInput, …) arrives UTF-8 encoded. Not in xterm.
Implementation
void Function(Uint8List data)? onOutputBytes;