addByte method

void addByte(
  1. int byte
)

Feeds one byte into the OSC parser.

Implementation

void addByte(int byte) {
  _ensureOpen();
  if (byte < 0 || byte > 255) {
    throw RangeError.range(byte, 0, 255, 'byte');
  }
  bindings.ghostty_osc_next(_handle, byte);
}