yh-yahan/esc-printer-lab ? reverse-engineered prompt

Reverse engineered prompt

Build me a desktop app in Rust that acts like an ESC POS thermal receipt printer emulator.

It should listen on a TCP port for printer data, then show a live preview of the receipt as the bytes come in. I also want a protocol inspector panel so I can see the raw commands and data being sent, including anything the app does not understand.

Support the common receipt printer features I’d expect from a basic thermal printer, like text formatting, alignment, line spacing, image printing, barcodes, QR codes, paper cutting, code pages, and plain text output. If some commands are not supported, keep the raw bytes around instead of dropping them.

Make it easy to run locally with a simple cargo run, and keep the UI clean and readable so it feels like a small printer lab for testing receipt output. If you need to check any current Rust crate docs or printer behavior details, look them up online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab