An open API service indexing awesome lists of open source software.

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

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
```