blob: dc6e6ffdaab78d96122b184cc78b72a98d35a9ac (
plain)
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
|
.\"
.\" lptcontrol - a utility for manipulating the lpt driver
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\"
.\" $Id: lptcontrol.8,v 1.6 1997/09/25 06:36:28 charnier Exp $
.Dd September 3, 1994
.Dt LPTCONTROL 8
.Os FreeBSD 2
.Sh NAME
.Nm \&lptcontrol
.Nd a utility for manipulating the lpt printer driver
.Sh SYNOPSIS
.Nm \&lptcontrol
.Cm -i
|
.Cm -p
.Op Fl u Ar unit no
.Sh DESCRIPTION
The
.Nm
command is used to set either the interrupt-driven or polling mode
of individual
.Xr lpt 4
devices. When a printer is switched between
interrupt-driven and polled mode, this change will only take effect
the next time the device is opened.
.Sh OPTIONS
.TP
The following command line options are supported:
.Bl -tag -width indent
.It Fl i
Turn on interrupt-driven mode.
.It Fl p
Turn on polled mode.
.It Fl u Ar n
Set the mode of the printer device specified by
.Em n .
The default value for
.Em n
is
.Em 0
(ie.
.Pa /dev/lpt0 )
.El
.Pp
One of
.Fl i
or
.Fl p
must be specified.
.Pp
.Sh FILES
.Bl -tag -width /sys/i386/conf/GENERIC -compact
.It Pa /dev/lpt?
Printer devices.
.It Pa /dev/lpctl?
Printer control devices.
.It Pa /sys/i386/conf/GENERIC
Kernel configuration file.
.El
.Sh BUGS
Sure to be some.
.Sh "SEE ALSO"
.Xr lpt 4
.Sh AUTHORS
.An Geoffrey M. Rehmet
.Sh HISTORY
.Nm Lptcontrol
first appeared in
.Fx 1.1.5
|