Skip to content

🖨️ Receipt printer emulator to test ESC/POS commands against

Notifications You must be signed in to change notification settings

roydejong/EscPosEmulator

Repository files navigation

ESC/POS Receipt Printer Emulator

🖨️ This app emulates a networked receipt printer to test your ESC/POS commands against.

Emulator

About

  • 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)

👷 This is an unfinished experiment. Use at your own risk and keep your expectations low. :)

Supported commands

⚠️ Support is currently limited to only a subset of ESC/POS. Even the commands listed here may only be partially implemented.

  • Raw Text
  • LF: Line feed
  • CR: Carriage return
  • ESC Commands:
    • Initialize printer (ESC @)
    • Toggle italic (ESC 4 / ESC 5) [possibly deprecated?]
    • Select font (ESC M)
    • Select justification (ESC a)
    • Select line spacing (ESC 2 / ESC 3)
    • Toggle emphasis (ESC E)
    • Toggle underline (ESC -)
  • GS Commands:
    • Select character size
    • Select cut mode and cut paper

Emulated printer

This program emulates a printer with the following specifications:

  • 80mm paper width
  • 72mm printing width
  • 180x180dpi
  • ASCII Font A/B: 12x24 pixels
  • Automatic line feed

About

🖨️ Receipt printer emulator to test ESC/POS commands against

Topics

Resources

Stars

Watchers

Forks

Languages