https://github.com/dantecatalfamo/tlpr-zig
Thermal printer zig library and cli
https://github.com/dantecatalfamo/tlpr-zig
cli escpos thermal-printer zig zig-library
Last synced: 12 months ago
JSON representation
Thermal printer zig library and cli
- Host: GitHub
- URL: https://github.com/dantecatalfamo/tlpr-zig
- Owner: dantecatalfamo
- Created: 2021-12-03T04:32:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-30T20:33:18.000Z (about 4 years ago)
- Last Synced: 2025-07-02T05:02:50.735Z (12 months ago)
- Topics: cli, escpos, thermal-printer, zig, zig-library
- Language: Zig
- Homepage:
- Size: 62.5 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tlpr-zig
## Library
Most ESC/POS commands are implemented in `src/commands.zig`.
## CLI
```
usage: tlpr --ip [options]
tlpr --stdout [options]
Thermal Line Printer application.
Prints input through thermal printer.
-c cut paper after printing.
-e emphasis
-n don't initialize the printer when connecting
-r reverse black/white printing
-u underline
-uu double underline
--alt use alternate font
--file read input from file instead of stdin
--height <1-8> select character height
--image print an image
--ip the IP address of the printer
--justify
--macro use roff-like macro language
--rotate rotate 90 degrees clockwise
--stdout write commands to standard out instead of sending over a socket
--threshold image b/w threshold, 0-255 (default 150).
--threshold image b/w threshold, randomized between min-max per pixel
--upsidedown enable upside down mode
--width <1-8> select character width
--wrap wrap lines at characters
```