xref: /freebsd/usr.sbin/lptcontrol/lptcontrol.8 (revision a8445737e740901f5f2c8d24c12ef7fc8b00134e)
1.\"
2.\" lptcontrol - a utility for manipulating the lpt driver
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\"
13.\"
14.\" $Id: lptcontrol.8,v 1.6 1997/09/25 06:36:28 charnier Exp $
15.Dd September 3, 1994
16.Dt LPTCONTROL 8
17.Os FreeBSD 2
18.Sh NAME
19.Nm \&lptcontrol
20.Nd a utility for manipulating the lpt printer driver
21.Sh SYNOPSIS
22.Nm \&lptcontrol
23.Cm -i
24|
25.Cm -p
26.Op Fl u Ar unit no
27.Sh DESCRIPTION
28The
29.Nm
30command is used to set either the interrupt-driven or polling mode
31of individual
32.Xr lpt 4
33devices.  When a printer is switched between
34interrupt-driven and polled mode, this change will only take effect
35the next time the device is opened.
36.Sh OPTIONS
37.TP
38The following command line options are supported:
39.Bl -tag -width indent
40.It Fl i
41Turn on interrupt-driven mode.
42.It Fl p
43Turn on polled mode.
44.It Fl u  Ar n
45Set the mode of the printer device specified by
46.Em n .
47The default value for
48.Em n
49is
50.Em 0
51(ie.
52.Pa /dev/lpt0 )
53.El
54.Pp
55One of
56.Fl i
57or
58.Fl p
59must be specified.
60.Pp
61.Sh FILES
62.Bl -tag -width /sys/i386/conf/GENERIC -compact
63.It Pa /dev/lpt?
64Printer devices.
65.It Pa /dev/lpctl?
66Printer control devices.
67.It Pa /sys/i386/conf/GENERIC
68Kernel configuration file.
69.El
70.Sh BUGS
71Sure to be some.
72.Sh "SEE ALSO"
73.Xr lpt 4
74.Sh AUTHORS
75.An Geoffrey M. Rehmet
76.Sh HISTORY
77.Nm Lptcontrol
78first appeared in
79.Fx 1.1.5
80