[go: up one dir, main page]

File: hpset.1

package info (click to toggle)
djtools 1.2.8
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 740 kB
  • sloc: cpp: 993; ansic: 162; makefile: 52
file content (126 lines) | stat: -rw-r--r-- 2,351 bytes parent folder | download | duplicates (2)
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
.Dd April 27, 1997
.Dt HPSET(1)
.Os LINUX
.Sh NAME
.Nm hpset
.Nd printer commands
.Sh SYNOPSIS
.Nm hpset
.Op Fl hco
.Op Ar commands ...
.Sh DESCRIPTION
.Nm hpset
is used to send commands to a printer. These commands are synonyms for ESC
Codes based on the PCL standard from Hewlet Packard.
.Pp
.Sh Options
.Bl -tag -width indent
.It Fl c
redirect output to stdout
.It Fl o Ns Ar name
redirect output into the specified file or device
redirect
.It Fl h
prints a help message
.El
.Sh Commands
.Bl -tag -width indent
.It  back 
Puts every setting back to the printer defaults.
.It  test
Starts the self test. 
.It  out
If paper is inside the printer it will be thrown out.
.It  cr
activates the linefeed
.It  lbon
acivates the linebreak.
.It  leftright
forces the printer to print only from left to right.
.It  rightleft
forces the printer to print only from right to left.
.It  bidirect
forces the printer in both ways.
.It  execoff
The following commands are not executed but printed.
.It  execon
The following commands are executed.
.It  nice
High quality printing.
.It  econo
Enables fast and economic printing.
.It  landscape 
Printing in landscape format.
.It  portrait
Printing in portrait format.
.It  lpi Ns Ar num
Sets the lines per inch. For num use 6 or 8.
.El
.Pp
The following commands must be sent in the given order and sequence. The
sequence looks like,
.Bd -literal -offset indent
hpset [characterset] [characterdistance] [character density] 
[point size] [type position] [line strength] [type] 
.Bl -tag -width indent
.It Fl Characterset

english		ISO 4

ansi		ANSI ASCII ISO 6

sweden 		ISO 10

italian		ISO 15

spain		ISO 17

german		ISO 21

france		ISO 69

.It Fl Characterdistance

prop	Proportional

fix	Fixed

.El
.Pp
If you've chosen proportional you don't have to set the character density.

.Bl -tag -width indent
.It Fl Characterdensity

cpi# 	# is one of 5,6,10,12,16,16.67,20,24

.It Fl Pointsize

point# 	# is one of 4.75,5,6,7,8,9.5,10,12,14,19,24

.It Fl Typeposition

italic
upright

.It Fl Linestrength

bold
normal

.It Fl Type

courier
times
gothic
univers

.El
Notice that not every combination of the commands above is possible. Refer
to the manual of HPSET where you can find a table with allowed combinations.
.Ed
.Sh SEE ALSO
.Xr lpr 1 ,
.Xr lpd 1 ,
.Sh BUGS
report them to michael.janson@stud.uni-karlsruhe.de