readByteSync method
Reads a single byte synchronously from input.
This is the primary method used for key event reading. Blocks until a byte is available.
Implementation
@override
int readByteSync() {
if (_byteQueue.isEmpty) {
throw StateError('MockTerminalInput: No bytes queued for readByteSync');
}
return _byteQueue.removeAt(0);
}