hennedo / escpos

golang library for espos printers, supporting images, barcodes and qr codes
MIT License
74 stars 30 forks source link

can't read errors from the printer #4

Open naikrovek opened 2 years ago

naikrovek commented 2 years ago

I'm using this on a USB Epson TM-T88IV and if something isn't right during printing, the printer just ... stops. There's no way to know what is wrong because the only connection to the printer is through a Writer, and not a ReadWriter.

It is probably not trivial to implement, or maybe it is, but checking for an error after each WriteRaw and exposing that would be lovely.