xref: /freebsd/sbin/comcontrol/comcontrol.8 (revision 6b3455a7665208c366849f0b2b3bc916fb97516e)
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 SEE ALSO
49.Xr stty 1 ,
50.Xr sio 4
51.Sh FILES
52.Bl -tag -width /dev/ttyd? -compact
53.It Pa /dev/ttyd?
54dialin devices, hardwired terminals
55.It Pa /dev/cuaa?
56dialout devices
57.El
58.Sh AUTHORS
59.An Christopher G. Demetriou
60.Sh HISTORY
61Originally part of cgd's com package patches, version 0.2.1, to
62.Bx 386 0.1 .
63Once controlled bidirectional capabilities.
64Little is left to control now
65that these capabilities are standard.
66