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>
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>
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>
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>
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.