xref: /dflybsd-src/sbin/comcontrol/comcontrol.8 (revision 86d7f5d305c6adaa56ff4582ece9859d73106103)
1*86d7f5d3SJohn Marino.\" $FreeBSD: src/sbin/comcontrol/comcontrol.8,v 1.15.2.7 2002/08/21 18:58:13 trhodes Exp $
2*86d7f5d3SJohn Marino.\" $DragonFly: src/sbin/comcontrol/comcontrol.8,v 1.4 2007/12/16 02:55:38 thomas Exp $
3*86d7f5d3SJohn Marino.Dd May 15, 1994
4*86d7f5d3SJohn Marino.Dt COMCONTROL 8
5*86d7f5d3SJohn Marino.Os
6*86d7f5d3SJohn Marino.Sh NAME
7*86d7f5d3SJohn Marino.Nm comcontrol
8*86d7f5d3SJohn Marino.Nd control a special tty device
9*86d7f5d3SJohn Marino.Sh SYNOPSIS
10*86d7f5d3SJohn Marino.Nm
11*86d7f5d3SJohn Marino.Ar special_device
12*86d7f5d3SJohn Marino.Op dtrwait Ar number
13*86d7f5d3SJohn Marino.Op drainwait Ar number
14*86d7f5d3SJohn Marino.Sh DESCRIPTION
15*86d7f5d3SJohn MarinoThe
16*86d7f5d3SJohn Marino.Nm
17*86d7f5d3SJohn Marinoutility is used to examine and modify some of the special characteristics
18*86d7f5d3SJohn Marinoof the specified tty device.
19*86d7f5d3SJohn MarinoIf no arguments other than the device (or "-" for stdin)
20*86d7f5d3SJohn Marinoare specified,
21*86d7f5d3SJohn Marinoit prints the settings of all controllable characteristics.
22*86d7f5d3SJohn MarinoThis usage requires only read access on the device.
23*86d7f5d3SJohn MarinoOnly the superuser can change the settings.
24*86d7f5d3SJohn Marino.Pp
25*86d7f5d3SJohn MarinoThe following options are available:
26*86d7f5d3SJohn Marino.Bl -tag -width indent
27*86d7f5d3SJohn Marino.It Cm dtrwait Ar number
28*86d7f5d3SJohn MarinoSet the time to wait after dropping DTR
29*86d7f5d3SJohn Marinoto the given number.
30*86d7f5d3SJohn MarinoThe units are hundredths of a second.
31*86d7f5d3SJohn MarinoThe default is 300 hundredths, i.e., 3 seconds.
32*86d7f5d3SJohn MarinoThis option needed mainly to set proper recover time after
33*86d7f5d3SJohn Marinomodem reset.
34*86d7f5d3SJohn Marino.It Cm drainwait Ar number
35*86d7f5d3SJohn MarinoSet the time to wait for output drain
36*86d7f5d3SJohn Marinoto the given number.
37*86d7f5d3SJohn MarinoThe units are seconds.
38*86d7f5d3SJohn MarinoThe default is 0 minutes, 0 means
39*86d7f5d3SJohn Marinowaiting forever.
40*86d7f5d3SJohn MarinoThis option needed mainly to specify upper limit of minutes
41*86d7f5d3SJohn Marinoto prevent modem hanging.
42*86d7f5d3SJohn Marino.El
43*86d7f5d3SJohn Marino.Pp
44*86d7f5d3SJohn MarinoThe standard way to use
45*86d7f5d3SJohn Marino.Nm
46*86d7f5d3SJohn Marinois to put invocations of it in the
47*86d7f5d3SJohn Marino.Pa /etc/rc.d/serial
48*86d7f5d3SJohn Marinostartup script.
49*86d7f5d3SJohn Marino.Sh FILES
50*86d7f5d3SJohn Marino.Bl -tag -width /dev/ttyd? -compact
51*86d7f5d3SJohn Marino.It Pa /dev/ttyd?
52*86d7f5d3SJohn Marinodialin devices, hardwired terminals
53*86d7f5d3SJohn Marino.It Pa /dev/cuaa?
54*86d7f5d3SJohn Marinodialout devices
55*86d7f5d3SJohn Marino.El
56*86d7f5d3SJohn Marino.Sh SEE ALSO
57*86d7f5d3SJohn Marino.Xr stty 1 ,
58*86d7f5d3SJohn Marino.Xr sio 4
59*86d7f5d3SJohn Marino.Sh HISTORY
60*86d7f5d3SJohn MarinoOriginally part of cgd's com package patches, version 0.2.1, to
61*86d7f5d3SJohn Marino.Bx 386 0.1 .
62*86d7f5d3SJohn MarinoOnce controlled bidirectional capabilities.  Little is left to control now
63*86d7f5d3SJohn Marinothat these capabilities are standard.
64*86d7f5d3SJohn Marino.Sh AUTHORS
65*86d7f5d3SJohn Marino.An Christopher G. Demetriou
66