Commit Graph
11 Commits
Author SHA1 Message Date
Philipp MundhenkandClaude Opus 5.5 600a24599c add --hires for 2x resolution along the tape
Sets the high resolution bit of ESC i K. The image is sent as it is, so it has
to be twice as long; --writepng records the doubled horizontal resolution in
the PNG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:01:17 +01:00
Philipp MundhenkandClaude Opus 5.5 7e9516d5d0 add --cut-every to cut only after every n copies
Sends ESC i A (cut every n labels) together with auto cut (ESC i M 0x40), so
--copies 10 --cut-every 5 gives two strips of five labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:01:12 +01:00
Philipp MundhenkandClaude Opus 5.5 2e7185a787 add --halfcut for printers with a half cutter
Sends ESC i K (advanced mode settings) with the half cut bit, and the chain bit
according to --chain. The command is only sent when an option needs it, so
printers that do not know it see no change; on the PT-D460BT family it
replaces the separate chain command, which is the same command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:01:08 +01:00
Philipp MundhenkandClaude Opus 5.5 0aed8932eb add --feed to set the blank tape before and after a label
Sends ESC i d (specify margin amount) with the given number of dots. Without
the option nothing changes: the printer keeps its default of 14 dots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:01:03 +01:00
James A 7fa1e1ac46 add --serial and --list-connected to pick one of several printers
When more than one printer is connected, ptouch-print used the first
one it found. --serial <serial> now uses only the printer with that USB
serial number, and --list-connected lists the connected printers with
their serials.

libptouch gets ptouch_open_serial() and ptouch_list_connected();
ptouch_open() keeps its signature and calls ptouch_open_serial() with
NULL. The serial is checked before the P-Lite and unsupported-raster
checks, so a different printer in the wrong mode no longer ends the
search, and the "found on USB bus" line now shows the serial. The early
error returns in the open loop now free the device list.
2026-09-25 09:51:25 +02:00
Pascal de Bruijn 245aa4aad0 add fontmargin to manual page 2026-03-08 09:28:09 +01:00
Dominic Radermacher 76c419f952 Add support for using \n for new line (thanks to github.com/probonopd/) 2026-03-06 08:20:32 +01:00
Markus Schramma d8a4ed71e2 add --timeout option 2025-09-28 08:05:41 +02:00
Dominic Radermacher 01d661493f update manpage and project url 2023-03-13 11:17:03 +01:00
Dominic Radermacher 72ddc5b01e update contact info 2021-08-30 15:15:16 +02:00
Dominic Radermacher 91b5a03fd5 added draft of a man page, install not handled by autotools yet 2020-03-04 20:50:22 +01:00