xref: /freebsd/sbin/comcontrol/comcontrol.8 (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1.Dd May 15, 1994
2.Dt COMCONTROL 8
3.Os
4.Sh NAME
5.Nm comcontrol
6.Nd control a special tty device
7.Sh SYNOPSIS
8.Nm
9.Ar special_device
10.Op dtrwait Ar number
11.Op drainwait Ar number
12.Sh DESCRIPTION
13The
14.Nm
15utility is used to examine and modify some of the special characteristics
16of the specified tty device.
17If no arguments other than the device (or "-" for stdin)
18are specified,
19it prints the settings of all controllable characteristics.
20This usage requires only read access on the device.
21Only the superuser can change the settings.
22.Pp
23The following options are available:
24.Bl -tag -width indent
25.It Cm dtrwait Ar number
26Set the time to wait after dropping DTR
27to the given number.
28The units are hundredths of a second.
29The default is 300 hundredths, i.e., 3 seconds.
30This option needed mainly to set proper recover time after
31modem reset.
32.It Cm drainwait Ar number
33Set the time to wait for output drain
34to the given number.
35The units are seconds.
36The default is 5 minutes, 0 means
37waiting forever.
38This option is needed mainly to specify an upper limit of minutes
39to prevent modem hanging.
40.El
41.Pp
42The standard way to use
43.Nm
44is to put invocations of it in the
45.Pa /etc/rc.d/serial
46startup script.
47.Sh FILES
48.Bl -tag -width /dev/ttyd? -compact
49.It Pa /dev/ttyd?
50dialin devices, hardwired terminals
51.It Pa /dev/cuau?
52dialout devices
53.El
54.Sh SEE ALSO
55.Xr stty 1 ,
56.Sh HISTORY
57Originally part of cgd's com package patches, version 0.2.1, to
58.Bx 386 0.1 .
59Once controlled bidirectional capabilities.
60Little is left to control now
61that these capabilities are standard.
62.Sh AUTHORS
63.An Christopher G. Demetriou
64