csiSendDeviceAttributesHandler function

void csiSendDeviceAttributesHandler(
  1. CSI csi,
  2. Terminal terminal
)

Implementation

void csiSendDeviceAttributesHandler(CSI csi, Terminal terminal) {
  var response = '?1;2';

  if (csi.prefix == 62 /* '>' */) {
    response = '>0;0;0';
  }

  terminal.backend?.write('\x1b[${response}c');
}