1
0
Fork
You've already forked simple-escpos
0
No description
  • Rust 100%
Find a file
2026年06月23日 03:15:38 +02:00
examples Start with tty mode but feed doesnt work 2025年10月08日 18:03:58 +02:00
src display missing code point in error message 2026年06月23日 03:15:38 +02:00
tool add codepage encoding support 2025年11月09日 20:21:52 +01:00
.gitignore raster image printing 2025年10月08日 15:18:45 +02:00
Cargo.lock add codepage encoding support 2025年11月09日 20:21:52 +01:00
Cargo.toml add codepage encoding support 2025年11月09日 20:21:52 +01:00
Readme.md cli doc + raw print 2025年10月08日 19:35:56 +02:00

simple-escpos

A Rust library for generating EPSON ESC/POS printer data.

This library exposes escape codes as string constants if possible, otherwise as structs that implement the Display trait; because of this it is very nice to use with the write! macros.

Printer tool

This repository also contains a printing utility (escpos-print).

Utility for operating EPSON ESC/POS compatible printers
Usage: escpos-print [OPTIONS] <COMMAND>
Commands:
 cut Perform full cut
 text Print text file / raw ESC/POS
 markdown Print markdown file
 raster Print raster image
 tty Run command in pseudo terminal; print output
 help Print this message or the help of the given subcommand(s)
Options:
 -p, --printer-device <PRINTER_DEVICE>
 Specify to printer device node; also accepted from env ESCPOS_PRINTER_DEVICE
 -P, --printer-address <PRINTER_ADDRESS>
 Specify to printer network address; also accepted from env ESCPOS_PRINTER_ADDRESS
 -n, --no-cut
 Don't cut after printing
 -h, --help
 Print help

License

AGPL-3.0-only