writeBytes method
- Uint8List data
Implementation
int writeBytes(Uint8List data) {
final pty = _pty;
if (_state != GhosttyTerminalPtySessionState.running || pty == null) {
return 0;
}
try {
return pty.writeBytes(data);
} catch (error, stackTrace) {
_events.add(GhosttyTerminalPtyErrorEvent(error, stackTrace));
return 0;
}
}