~ubuntu-branches/ubuntu/wily/ptouch-driver/wily

« back to all changes in this revision

Viewing changes to debian/patches/send-esc-i-A.patch

  • Committer: Package Import Robot
  • Author(s): Didier Raboud
  • Date: 2011-08-29 12:27:35 UTC
  • mfrom: (2.1.10 oneiric)
  • Revision ID: package-import@ubuntu.com-20110829122735-pz8m0lrofxe0wzgt
Tags: 1.3-1
* Initial Debian release (Closes: #555892).

* Start from the Ubuntu packaging, thanks!

* Put under Debian Printing Team umbrella, with myself as uploader.
* Convert to 3.0 (quilt) source format.
* Add the Ubuntu apport hook conditionally
* Add VCS-* fields.
* Use dh-autoreconf to have a cleaner build.
* debian/watch: add.
* Use dh_pyppd trough the --with stanza.
* Drop explicit pyppd depends, they come trough dh_pyppd.
* Add DEP-3 headers to all patches.
* Rewrite debian/copyright DEP-5-style.
* Enable parallel building, including specifying the number of threads for
  the foomatic compilation.
* Drop unneeded dh_auto_test override.
* Slightly rewrite the "long" description.
* Bump Standards-Version to 3.9.2 without changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
9
@@ -698,6 +698,7 @@
 
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);
 
16
 }