https://github.com/bef/tcl-escpos
Tcl library for ESC/POS compatible receipt printers
https://github.com/bef/tcl-escpos
Last synced: 4 months ago
JSON representation
Tcl library for ESC/POS compatible receipt printers
- Host: GitHub
- URL: https://github.com/bef/tcl-escpos
- Owner: bef
- License: bsd-3-clause
- Created: 2015-07-14T08:55:03.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-12-07T09:57:57.000Z (over 1 year ago)
- Last Synced: 2025-03-23T00:27:59.273Z (over 1 year ago)
- Language: Tcl
- Homepage:
- Size: 51.8 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Tcl-ESCPOS
==========

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