Skip to content

bef/tcl-escpos

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Tcl-ESCPOS

alt tag

This Tcl library provides easy access to ESC/POS printer commands.

Author: Ben Fuhrmannek

Installation

First clone the repository:

git clone https://github.com/bef/tcl-escpos.git

Then either use it in-place ./epprint.tcl ... or move/copy/link the directory to your Tcl auto_path, e.g.

$ echo 'puts $auto_path' |tclsh
/usr/share/tcltk/tcl8.6 /usr/share/tcltk /usr/lib /usr/local/lib/tcltk /usr/local/share/tcltk /usr/lib/tcltk/x86_64-linux-gnu /usr/lib/tcltk /usr/lib/tcltk/tcl8.6
$ mkdir -p /usr/local/lib/tcltk
$ mv tcl-escpos /usr/local/lib/tcltk/

Templates

All templates are just like regular Tcl-strings with backslash/variable/command substitution, e.g.

With \$a=[set a "test"], this is a $a.

results in

With $a=test, this is a test.

See template examples in the templates directory for a bunch of examples.

Contributors

(in chronological order of contributions)

  • Joel: customer display commands
  • Sascha Ludwig: templates, fixes, ideas and generally good spirit

About

Tcl library for ESC/POS compatible receipt printers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages