tspl property
TSPL <ESC>!?: one status byte, 0 = ready.
Implementation
static final tspl = PrinterStatusQuery._(
Uint8List.fromList([0x1B, 0x21, 0x3F]),
(b) {
if (b == 0 || b == 0x20) return PrinterReadiness.ready; // 0x20 = printing
if (b & 0x01 != 0) return PrinterReadiness.coverOpen;
if (b & 0x0C != 0) return PrinterReadiness.paperOut; // paper / ribbon
if (b & 0x10 != 0) return PrinterReadiness.paused;
return PrinterReadiness.error;
},
);