Skip to content

dantecatalfamo/tlpr-zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tlpr-zig

Library

Most ESC/POS commands are implemented in src/commands.zig.

CLI

usage: tlpr --ip <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 <path> read input from file instead of stdin
    --height <1-8> select character height
    --image <path> print an image
    --ip the IP address of the printer
    --justify <left|right|center>
    --macro use roff-like macro language
    --rotate rotate 90 degrees clockwise
    --stdout write commands to standard out instead of sending over a socket
    --threshold <value> image b/w threshold, 0-255 (default 150).
    --threshold <min-max> image b/w threshold, randomized between min-max per pixel
    --upsidedown enable upside down mode
    --width <1-8> select character width
    --wrap <num> wrap lines at <num> characters

Releases

No releases published

Packages

No packages published

Languages