mirror of
https://git.familie-radermacher.ch/linux/ptouch-print.git
synced 2026-11-18 17:34:20 +00:00
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>
This commit is contained in:
1 parent
0aed8932eb
commit
2e7185a787
4 files changed
+48
-2
No files matched your search
@@ -352,6 +352,14 @@ int ptouch_send_margin(ptouch_dev ptdev, int dots)
|
||||
return ptouch_send(ptdev, cmd, sizeof(cmd)-1);
|
||||
}
|
||||
|
||||
/* 1B 69 4B {n} = ESC i K = advanced mode settings, see ADV_* in ptouch.h */
|
||||
int ptouch_send_advanced_mode(ptouch_dev ptdev, uint8_t mode)
|
||||
{
|
||||
uint8_t cmd[] = "\x1b\x69\x4b\x00";
|
||||
cmd[3] = mode;
|
||||
return ptouch_send(ptdev, cmd, sizeof(cmd)-1);
|
||||
}
|
||||
|
||||
int ptouch_rasterstart(ptouch_dev ptdev)
|
||||
{
|
||||
if (!ptdev) {
|
||||
|
||||
Reference in new issue
Block a user