🖨️ This app emulates a networked receipt printer to test your ESC/POS commands against.
- Windows application (WPF + .NET 6)
- Binds to a TCP/IP interface and listens for ESC/POS commands
- Logs commands and visually represents the resulting receipt(s)
- With italics text cutting bug corrected
👷 This is a working in progress. Use at your own risk and keep your expectations low. :)
- Raw Text
- FF: Form feed
- HT: Horizontal tabs
- LF: Line feed
- CR: Carriage return
- ESC Commands:
- Initialize printer (
ESC @
) - Toggle italic (
ESC 4
/ESC 5
) - Select font (
ESC M
) - Select justification (
ESC a
) - Select line spacing (
ESC 2
/ESC 3
) - Toggle emphasis (
ESC E
) - Toggle underline (
ESC -
) - Set print text mode (
ESC !
) - Paper full cut (
ESC m
) - Paper partial cut (
ESC i
) - Paper feed N lines (
ESC d
) - Paper feed (
ESC J
)
- Initialize printer (
- FS Commands:
- Print stored logo (
FS p
) - Paper auto cut (
FS }
)
- Print stored logo (
- GS Commands:
- Select character size
- Select cut mode and cut paper
- Paper eject (
GS e
)
This program emulates a printer with the following specifications:
- 80mm paper width
- 76mm printing width
- 203x203dpi
- ASCII Font A: 12x24 pixels
- ASCII Font B: 9x24 pixels
- ASCII Font C: 24x48 pixels
- ASCII Font D: 16x24 pixels
- Automatic line feed
https://aures-support.com/DATA/drivers/Imprimantes/Commande%20ESCPOS.pdf
https://www.starmicronics.com/support/Mannualfolder/escpos_cm_en.pdf
https://www.printercontroller.com/kcfinder/upload/files/esc_pos_commands_1_0_7.pdf
https://www.electronicaembajadores.com/Datos/pdf1/i5/i5tm/i5tm004.pdf
https://download4.epson.biz/sec_pubs/pos/reference_en/escpos/
https://escpos.readthedocs.io/en/latest/commands.html
https://tabshop.smartlab.at/help-topics/help-esc-pos-codes.html