File: hp4.h

package info (click to toggle)
cti-ifhp 2.1.8-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 932 kB
  • ctags: 845
  • sloc: ansic: 6,036; sh: 1,524; makefile: 318
file content (84 lines) | stat: -rw-r--r-- 2,530 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/**************************************************************************
 * LPRng IFHP Filter
 * Copyright 1994-1997 Patrick Powell, San Diego, CA <papowell@sdsu.edu>
 *
 * Based on the CTI printer filters.
 *  See COPYRIGHT for details.
 *
 * $Id: hp4.h,v 2.1 1997/01/05 18:41:40 papowell Exp $
*/


/****************************************************************************
 * Modification History:
 * 	Revision 1.1	95/01/12	11:45:37
 *		 Creation.
 * 	Revision 1.2	95/01/25	15:01:36
 *		 Landscape and portrait strings defined.
 * 	Revision 1.3	95/02/06	20:07:39
 *		 Landscape and portrait strings revised together with
 *		 improving the margin and pitch settings.
 * 	Revision 1.4	95/02/10	14:03:48
 *		 Full CTI address.
 * 	Revision 1.5	95/02/14	13:54:46
 *		 New Copyright notice.
 *
 */

#define idheadr  "@(#) hp4.h 95/02/14 - V 1.5" ;

/*
 *	PJL Command strings.
 */
#define UEL		"\033%-12345X"
#define	UELPJL		"\033%-12345X@PJL \r\n"

#define USTPJLDEV	"@PJL USTATUS DEVICE = ON \r\n"
#define USTPJLJOB	"@PJL USTATUS JOB = ON \r\n"
#define USTPJLPAGE	"@PJL USTATUS PAGE = ON \r\n"
#define USTPJLTIMED	"@PJL USTATUS TIMED = %d \r\n"
#define USTPJLOFF	"@PJL USTATUSOFF \r\n"

#define RESETPJL	"@PJL RESET \r\n"



#define INFOSTATUS	"@PJL INFO STATUS \r\n"
#define INFOPAGECOUNT	"@PJL INFO PAGECOUNT \r\n"
#define SIMPLXPJL	"@PJL SET DUPLEX = OFF \r\n"
#define DUPLXPJL	"@PJL SET DUPLEX = ON \r\n"

#define PORTRPJL	"@PJL SET ORIENTATION = PORTRAIT \r\n"
#define LANDSPJL	"@PJL SET ORIENTATION = LANDSCAPE \r\n"

#define POSTON		"@PJL ENTER LANGUAGE = POSTSCRIPT \r\n"
#define PCLON		"@PJL ENTER LANGUAGE = PCL \r\n"


/*
 *	PCL Command strings.
 */
#define PCLRESETSTR	"\033E"
#define INITSTR		"\033&s0C"
#define CRLFSTR		"\033&k2G"
#define SELFONT		"\033(12G\033(s0p11h12v0s0b3T"
#define OLDSELFONT	"\033(12G\033(s0p11h12v0s0b3T"
#define SELFID		"\033(963X"
#define DELFONTS	"\033*c0F"
#define PGSTR		"\033&l%dO\033&a%dM\033&a0R\033&l%dF\033&a0L"
#define PGSTRDPL	"\033&l%dO\033&a%dM\033&a0R\033&l%dF\033&a5L"
#define PGRESET		"\0339"
#define ASSIGN		"\033*c963D"
#define MKPRIM		"\033(963X"
#define MKPERM		"\033*c5F"
#define PITCH       "\033&k10.4000H"
#define PITCH80		"\033&k10.4000H"
#define PITCH132	"\033&k6.6079H"
#define PITCHLND	"\033&k10.0000H"
#define SHIFT		"\033&l360U"
#define SHIFTDPL	"\033&l150U"
#define WRAPON		"\033&s0C"
#define FFEED		"\014"
#define EOFSTR		"\004"
#define UNABLE  	"\033(8U\033(s1p24v0s0b4148T\033*p100x1200YCan \
not print PostScript\033*p100x1400Ywithout the Cartridge"