1994-09-03 13:10:09 +00: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.
|
|
|
|
.\"
|
1999-08-28 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
1994-09-03 22:47:08 +00:00
|
|
|
.Dd September 3, 1994
|
|
|
|
.Dt LPTCONTROL 8
|
|
|
|
.Os FreeBSD 2
|
|
|
|
.Sh NAME
|
|
|
|
.Nm \&lptcontrol
|
1997-09-25 06:36:29 +00:00
|
|
|
.Nd a utility for manipulating the lpt printer driver
|
1994-09-03 22:47:08 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm \&lptcontrol
|
|
|
|
.Cm -i
|
|
|
|
|
|
|
|
|
.Cm -p
|
1999-02-14 12:23:49 +00:00
|
|
|
|
|
|
|
|
.Cm -e
|
1999-05-28 02:09:46 +00:00
|
|
|
|
|
|
|
|
.Cm -s
|
1999-02-14 12:23:49 +00:00
|
|
|
.Op Fl d Ar device
|
1994-09-03 22:47:08 +00:00
|
|
|
.Sh DESCRIPTION
|
1994-09-03 13:10:09 +00:00
|
|
|
The
|
1997-09-25 06:36:29 +00:00
|
|
|
.Nm
|
1999-02-14 12:23:49 +00:00
|
|
|
command is used to set either the interrupt-driven, extended or polling mode
|
1994-09-03 22:47:08 +00:00
|
|
|
of individual
|
|
|
|
.Xr lpt 4
|
1999-02-14 12:23:49 +00:00
|
|
|
devices. When a printer is switched from
|
|
|
|
a mode to another, this change will only take effect
|
1994-09-03 13:10:09 +00:00
|
|
|
the next time the device is opened.
|
1999-02-14 12:23:49 +00:00
|
|
|
.Pp
|
|
|
|
Extended mode is anything the parallel port interface can support. For an
|
|
|
|
ECP/ISA parallel port, it may be FIFO+DMA or ECP.
|
1999-11-27 16:54:36 +00:00
|
|
|
.Pp
|
1994-09-03 22:47:08 +00:00
|
|
|
The following command line options are supported:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl i
|
1997-09-25 06:36:29 +00:00
|
|
|
Turn on interrupt-driven mode.
|
1994-09-03 22:47:08 +00:00
|
|
|
.It Fl p
|
1997-09-25 06:36:29 +00:00
|
|
|
Turn on polled mode.
|
1999-02-14 12:23:49 +00:00
|
|
|
.It Fl e
|
|
|
|
Turn on extended mode.
|
1999-05-28 02:09:46 +00:00
|
|
|
.It Fl s
|
|
|
|
Turn on standard mode, i.e. turn off extended mode.
|
1999-02-14 12:23:49 +00:00
|
|
|
.It Fl d Ar dev
|
1997-09-25 06:36:29 +00:00
|
|
|
Set the mode of the printer device specified by
|
1999-11-27 16:54:36 +00:00
|
|
|
.Ar dev .
|
1994-09-03 13:10:09 +00:00
|
|
|
The default value for
|
1999-11-27 16:54:36 +00:00
|
|
|
.Ar dev
|
1994-09-03 13:10:09 +00:00
|
|
|
is
|
1999-11-27 16:54:36 +00:00
|
|
|
.Pa /dev/lpt0 .
|
1994-09-03 22:47:08 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
1994-09-03 13:10:09 +00:00
|
|
|
One of
|
1994-09-03 22:47:08 +00:00
|
|
|
.Fl i
|
1999-02-14 12:23:49 +00:00
|
|
|
,
|
1994-09-03 22:47:08 +00:00
|
|
|
.Fl p
|
1999-02-14 12:23:49 +00:00
|
|
|
or
|
|
|
|
.Fl e
|
1994-09-03 13:10:09 +00:00
|
|
|
must be specified.
|
1994-09-03 22:47:08 +00:00
|
|
|
.Pp
|
|
|
|
.Sh FILES
|
1997-09-25 06:36:29 +00:00
|
|
|
.Bl -tag -width /sys/i386/conf/GENERIC -compact
|
|
|
|
.It Pa /dev/lpt?
|
1999-11-27 16:54:36 +00:00
|
|
|
printer devices
|
1997-09-25 06:36:29 +00:00
|
|
|
.It Pa /dev/lpctl?
|
1999-11-27 16:54:36 +00:00
|
|
|
printer control devices
|
1997-09-25 06:36:29 +00:00
|
|
|
.It Pa /sys/i386/conf/GENERIC
|
1999-11-27 16:54:36 +00:00
|
|
|
kernel configuration file
|
1994-09-03 22:47:08 +00:00
|
|
|
.El
|
|
|
|
.Sh BUGS
|
|
|
|
Sure to be some.
|
|
|
|
.Sh "SEE ALSO"
|
|
|
|
.Xr lpt 4
|
1998-03-23 08:31:20 +00:00
|
|
|
.Sh AUTHORS
|
1997-09-25 06:36:29 +00:00
|
|
|
.An Geoffrey M. Rehmet
|
1994-09-03 22:47:08 +00:00
|
|
|
.Sh HISTORY
|
1997-09-25 06:36:29 +00:00
|
|
|
.Nm Lptcontrol
|
|
|
|
first appeared in
|
|
|
|
.Fx 1.1.5
|