No description
  • C 75.3%
  • CMake 19.2%
  • Roff 5.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kevin Bradenstein 41c4af0d0d allow a printer to raise the default status timeout
The PT-E560BT stays busy about 2.2 s after even an 8 mm label, so the
1 second default timeout cannot succeed on a job sent straight after
another: printing five chained labels gives a strip carrying three of
them. ptouch-print reports the timeout and exits non-zero correctly every
time, but no amount of waiting helps when the default is below the
printer's fixed overhead.

Add a trailing min_timeout to the device table. Every other row keeps its
initialiser and gets 0, which resolves to the old default of 1; only the
E560BT carries a value. An explicit --timeout always wins.

Raising the global default would also be defensible: ptouch_getstatus()
returns as soon as the status arrives, measured 0.13 s with --timeout 30
against 0.14 s with --timeout 1, so a higher ceiling costs nothing on a
printer that is ready. But that is a judgement about printers I do not
have, so this keeps it to the one that was measured.
2026-09-08 07:19:13 +02:00
cmake cmake: let the argp probe pass where argp-standalone needs strchrnul 2026-09-08 07:16:31 +02:00
include allow a printer to raise the default status timeout 2026-09-08 07:19:13 +02:00
po fix compile warnings about missing field initializer 2026-07-18 08:07:42 +02:00
src allow a printer to raise the default status timeout 2026-09-08 07:19:13 +02:00
udev add support for PT-P900Wc (04f9:2085, 360dpi, 36mm) 2026-07-18 07:56:55 +02:00
.gitignore fix build using cmake with generating version info from git 2021-10-11 10:11:37 +02:00
CMakeLists.txt cmake: let the argp probe pass where argp-standalone needs strchrnul 2026-09-08 07:16:31 +02:00
compile.sh better help text for newline arg, rename build script 2025-08-11 15:09:36 +02:00
COPYING Initial commit 2015-12-29 14:11:00 +01:00
ptouch-print.1 add fontmargin to manual page 2026-03-08 09:28:09 +01:00
README better help text for newline arg, rename build script 2025-08-11 15:09:36 +02:00

About:

ptouch-print is a command line tool to print labels on Brother P-Touch
printers on Linux.

There is no need to install the printer via CUPS, the printer is accessed
directly via libusb.

The tool was written for and tested with the PT-2430PC, but meanwhile is also
used with others (see "ptouch-print --list-supported")
Maybe others work too (please report USB VID and PID so I can include support
for further models, too).

Further info can be found at:
https://dominic.familie-radermacher.ch/projekte/ptouch-print/

Compile instructions:

./compile.sh

Note:

Dear visitor, currently I have absolutely no time for improvements on this
project (my free time currently is about one or two hours PER MONTH).
Therefore, I can not look at suggestions about improvements.