1
Description: The code "ESC i A \001" needs to be sent to the printer so that
2
cutting happens. Thanks to Matthias Urlichs for the patch.
3
Bugs-Ubuntu: LP: #635249.
4
Author: Till Kamppeter <till.kamppeter@gmail.com>
5
Last-Update: 2010-09-13
6
diff -ub ptouch-driver-1.3/rastertoptch.c ptouch-driver-1.3.new//rastertoptch.c
7
--- ptouch-driver-1.3.orig/rastertoptch.c 2009-02-04 09:47:44.000000000 +0100
8
+++ ptouch-driver-1.3/rastertoptch.c 2010-09-12 11:51:21.494421545 +0200
10
/* Determine mirror print bit*/
11
unsigned char mirror_bit = do_mirror ? 0x80 : 0x00;
12
/* Combine & emit printer command code */
13
+ putchar (ESC); putchar ('i'); putchar ('A'); putchar ((char) (do_cut ? 0x01 : 0x00));
14
putchar (ESC); putchar ('i'); putchar ('M');
15
putchar ((char) (feed & 0x1f) | auto_cut_bit | mirror_bit);