7b6e72a847
actually have a printer connected or online: - MAKEDEV: remove all signs of lpa add lpctl? devices (minor # = unit + 128) - usr.sbin/Makefile add lptcontrol - sys/i386/isa/lpt.c implement the LP_BYPASS flag: when a unit is opened with this flag set, the printer is not primed, and no check is made to see that the printer is online. This can only be used to pass ioctls. (giving us /dev/lpctl?) - lptcontrol.c use /dev/lpctl? (LP_BYPASS) -f flag removed, -u flag added - lptcontrol.8 document changes in lptcontrol rewrite using mandoc macros Submitted by: Geoff.
74 lines
1.7 KiB
Groff
74 lines
1.7 KiB
Groff
.\"
|
|
.\" 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 $
|
|
.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 lptcontrol
|
|
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
|
|
Turns on interrupt-driven mode.
|
|
.It Fl p
|
|
Turns on polled mode.
|
|
.It Fl u Ar n
|
|
Sets the mode of the printer device specified by
|
|
.Em n .
|
|
The default value for
|
|
.Em n
|
|
is
|
|
.Em 0 (ie. /dev/lpt0)
|
|
.El
|
|
.Pp
|
|
One of
|
|
.Fl i
|
|
or
|
|
.Fl p
|
|
must be specified.
|
|
.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
|
|
Geoffrey M. Rehmet
|
|
.Sh HISTORY
|
|
.Nm lptcontrol
|
|
first appeared in FreeBSD 1.1.5
|