I'm writing an app that needs to print receipts. I purchased a thermal printer that claims to accept ESC/POS commands, but I can't get it print barcodes for some reason. I'm testing it in Linux simply writing into the usb file for the printer using echo
. I can get it to print text and accept other commands such as underline, bold, etc. Is anyone familiar enough with ESC/POS to tell me if the following command should work?
echo -e "\x1d\x6b\x041234\x00" > /dev/usb/lp0