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