mirror of
https://git.familie-radermacher.ch/linux/ptouch-print.git
synced 2026-09-29 11:42:09 +00:00
7fa1e1ac46a3329f8e40cd1bdfd37f75aa4c1197
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.
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.
Languages
C
76.2%
CMake
18.2%
Roff
5.5%