1994-09-03 15:10:09 +02:00
|
|
|
.\"
|
|
|
|
.\" 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.1,v 1.3 1994/05/22 12:31:54 csgr Exp $
|
1994-09-04 00:47:08 +02:00
|
|
|
.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
|
1994-09-03 15:10:09 +02:00
|
|
|
The
|
1994-09-04 00:47:08 +02:00
|
|
|
.Nm lptcontrol
|
1994-09-03 15:10:09 +02:00
|
|
|
command is used to set either the interrupt-driven or polling mode
|
1994-09-04 00:47:08 +02:00
|
|
|
of individual
|
|
|
|
.Xr lpt 4
|
|
|
|
devices. When a printer is switched between
|
1994-09-03 15:10:09 +02:00
|
|
|
interrupt-driven and polled mode, this change will only take effect
|
|
|
|
the next time the device is opened.
|
1994-09-04 00:47:08 +02:00
|
|
|
.Sh OPTIONS
|
1994-09-03 15:10:09 +02:00
|
|
|
.TP
|
1994-09-04 00:47:08 +02:00
|
|
|
The following command line options are supported:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl i
|
1994-09-03 15:10:09 +02:00
|
|
|
Turns on interrupt-driven mode.
|
1994-09-04 00:47:08 +02:00
|
|
|
.It Fl p
|
1994-09-03 15:10:09 +02:00
|
|
|
Turns on polled mode.
|
1994-09-04 00:47:08 +02:00
|
|
|
.It Fl u Ar n
|
1994-09-03 15:10:09 +02:00
|
|
|
Sets the mode of the printer device specified by
|
1994-09-04 00:47:08 +02:00
|
|
|
.Em n .
|
1994-09-03 15:10:09 +02:00
|
|
|
The default value for
|
1994-09-04 00:47:08 +02:00
|
|
|
.Em n
|
1994-09-03 15:10:09 +02:00
|
|
|
is
|
1994-09-04 00:47:08 +02:00
|
|
|
.Em 0 (ie. /dev/lpt0)
|
|
|
|
.El
|
|
|
|
.Pp
|
1994-09-03 15:10:09 +02:00
|
|
|
One of
|
1994-09-04 00:47:08 +02:00
|
|
|
.Fl i
|
1994-09-03 15:10:09 +02:00
|
|
|
or
|
1994-09-04 00:47:08 +02:00
|
|
|
.Fl p
|
1994-09-03 15:10:09 +02:00
|
|
|
must be specified.
|
1994-09-04 00:47:08 +02:00
|
|
|
.Pp
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width indent -compact
|
|
|
|
.It Pa /dev/lpt? - printer devices
|
|
|
|
.It Pa /dev/lpctl? - printer control devices
|
|
|
|
.El
|
|
|
|
.Sh BUGS
|
|
|
|
Sure to be some.
|
|
|
|
.Sh "SEE ALSO"
|
|
|
|
.Xr lpt 4
|
|
|
|
.Xr /sys/i386/conf/GENERICAH
|
|
|
|
.Sh AUTHOR
|
1994-09-03 15:10:09 +02:00
|
|
|
Geoffrey M. Rehmet
|
1994-09-04 00:47:08 +02:00
|
|
|
.Sh HISTORY
|
|
|
|
.Nm lptcontrol
|
|
|
|
first appeared in FreeBSD 1.1.5
|