thecloud
/SimpleSpooler
/amendments
/8
roll back FilterData change that removed 1B5A/1B44 commands
- filtering out the 1B5A[01-0F]xx and 1B44[01-0F]xx control codes for
overriding switch settings isn't useful, so roll back this change.
These were being used to select an alternate char set in draft mode.
thecloud made amendment 8 13 days ago
--- PrintQueue.c Wed Aug 5 22:18:36 2026
+++ PrintQueue.c Thu Aug 6 10:21:35 2026
@@ -4,7 +4,7 @@
* Routines for processing and printing spool files.
*
* Written by: Ken McLeod, 2026-01-16
- * Last update: 2026-08-05
+ * Last update: 2026-08-06
*
* This software is provided as-is, with no warranties expressed or implied,
* under the terms of the BSD 2-Clause License. See separate "LICENSE" file.
@@ -59,8 +59,6 @@ void FilterData(long *count, void *data)
* 1BF8xxxxxxxx (same as 1B48, but for testing the filter on IW II)
* 1B4Bxx (select color command, plus 1 parameter byte)
* 1B61xx (print quality command, plus 1 parameter byte)
- * 1B5A[01-0F]xx (set switch OFF, plus 2 parameter bytes)
- * 1B44[01-0F]xx (set switch ON, plus 2 parameter bytes)
*
* We can also optionally filter the command that backs up the paper:
* 1B72 (set reverse line feeding)
@@ -93,15 +91,6 @@ void FilterData(long *count, void *data)
case 0xF8:
case 0x48:
p[index] = nopCmd; gBytesToRemove = 4;
- break;
- case 0x5A:
- case 0x44:
- if (index+1 >= length) {
- break; /* can't peek at next byte, oh well */
- }
- if (p[index+1] > 0x00 && p[index+1] < 0x10) {
- p[index] = nopCmd; gBytesToRemove = 2;
- }
break;
case 0x4B:
case 0x61: