xref: /freebsd/sbin/comcontrol/comcontrol.8 (revision 3a31b7eb32ad60e1e05b2b2e184ff47e4afbb874)
1.\" $FreeBSD$
2.Dd May 15, 1994
3.Dt COMCONTROL 8
4.Os
5.Sh NAME
6.Nm comcontrol
7.Nd control a special tty device
8.Sh SYNOPSIS
9.Nm
10.Ar special_device
11.Op dtrwait Ar number
12.Op drainwait Ar number
13.Sh DESCRIPTION
14.Nm Comcontrol
15is 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 needed mainly to specify 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.serial
46startup script.
47.Sh SEE ALSO
48.Xr stty 1 ,
49.Xr sio 4
50.Sh FILES
51.Bl -tag -width /dev/ttyd? -compact
52.It Pa /dev/ttyd?
53dialin devices, hardwired terminals
54.It Pa /dev/cuaa?
55dialout devices
56.El
57.Sh AUTHORS
58.An Christopher G. Demetriou
59.Sh HISTORY
60Originally part of cgd's com package patches, version 0.2.1, to
61.Bx 386 0.1 .
62Once controlled bidirectional capabilities.  Little is left to control now
63that these capabilities are standard.
64