1999-08-27 20:22:10 -04:00
|
|
|
.\" $FreeBSD$
|
1994-05-29 23:50:01 -04:00
|
|
|
.Dd May 15, 1994
|
1993-12-10 14:27:16 -05:00
|
|
|
.Dt COMCONTROL 8
|
|
|
|
|
.Os FreeBSD
|
|
|
|
|
.Sh NAME
|
|
|
|
|
.Nm comcontrol
|
2000-07-03 08:01:06 -04:00
|
|
|
.Nd control a special tty device
|
1993-12-10 14:27:16 -05:00
|
|
|
.Sh SYNOPSIS
|
2000-11-20 11:52:27 -05:00
|
|
|
.Nm
|
2000-07-03 09:29:04 -04:00
|
|
|
.Ar special_device
|
2000-05-01 08:14:30 -04:00
|
|
|
.Op dtrwait Ar number
|
|
|
|
|
.Op drainwait Ar number
|
1993-12-10 14:27:16 -05:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
|
.Nm Comcontrol
|
1996-01-30 11:34:52 -05:00
|
|
|
is used to examine and modify some of the special characteristics
|
2000-04-30 14:06:04 -04:00
|
|
|
of the specified tty device.
|
|
|
|
|
If no arguments other than the device (or "-" for stdin)
|
|
|
|
|
are specified,
|
1994-05-29 23:50:01 -04:00
|
|
|
it prints the settings of all controllable characteristics.
|
|
|
|
|
This usage requires only read access on the device.
|
|
|
|
|
Only the superuser can change the settings.
|
|
|
|
|
.Pp
|
|
|
|
|
The following options are available:
|
1998-06-30 02:09:37 -04:00
|
|
|
.Bl -tag -width indent
|
1994-05-29 23:50:01 -04:00
|
|
|
.It Cm dtrwait Ar number
|
|
|
|
|
Set the time to wait after dropping DTR
|
|
|
|
|
to the given number.
|
|
|
|
|
The units are hundredths of a second.
|
|
|
|
|
The default is 300 hundredths, i.e., 3 seconds.
|
1995-01-04 19:03:06 -05:00
|
|
|
This option needed mainly to set proper recover time after
|
|
|
|
|
modem reset.
|
|
|
|
|
.It Cm drainwait Ar number
|
|
|
|
|
Set the time to wait for output drain
|
|
|
|
|
to the given number.
|
|
|
|
|
The units are seconds.
|
2000-04-30 14:06:04 -04:00
|
|
|
The default is 5 minutes, 0 means
|
|
|
|
|
waiting forever.
|
1995-01-04 19:03:06 -05:00
|
|
|
This option needed mainly to specify upper limit of minutes
|
|
|
|
|
to prevent modem hanging.
|
1994-05-29 23:50:01 -04:00
|
|
|
.El
|
1993-12-10 14:27:16 -05:00
|
|
|
.Pp
|
|
|
|
|
The standard way to use
|
1998-06-30 02:09:37 -04:00
|
|
|
.Nm
|
1993-12-10 14:27:16 -05:00
|
|
|
is to put invocations of it in the
|
1998-06-30 02:09:37 -04:00
|
|
|
.Pa /etc/rc.serial
|
1993-12-10 14:27:16 -05:00
|
|
|
startup script.
|
|
|
|
|
.Sh SEE ALSO
|
1997-01-12 19:25:51 -05:00
|
|
|
.Xr stty 1 ,
|
|
|
|
|
.Xr sio 4
|
1993-12-10 14:27:16 -05:00
|
|
|
.Sh FILES
|
1998-06-30 02:09:37 -04:00
|
|
|
.Bl -tag -width /dev/ttyd? -compact
|
1994-05-03 14:50:13 -04:00
|
|
|
.It Pa /dev/ttyd?
|
1994-12-05 14:52:29 -05:00
|
|
|
dialin devices, hardwired terminals
|
|
|
|
|
.It Pa /dev/cuaa?
|
1998-06-30 02:09:37 -04:00
|
|
|
dialout devices
|
1998-03-19 02:47:10 -05:00
|
|
|
.Sh AUTHORS
|
|
|
|
|
.An Christopher G. Demetriou
|
1993-12-10 14:27:16 -05:00
|
|
|
.Sh HISTORY
|
|
|
|
|
Originally part of cgd's com package patches, version 0.2.1, to 386BSD 0.1.
|
1994-05-29 23:50:01 -04:00
|
|
|
Once controlled bidirectional capabilities. Little is left to control now
|
|
|
|
|
that these capabilities are standard.
|