xref: /openbsd-src/sbin/ttyflags/ttyflags.8 (revision 9490d37cb6a2f9c8feb8d4b7f9c43b2ac41784aa)
1*9490d37cSjmc.\"	$OpenBSD: ttyflags.8,v 1.11 2007/05/31 19:19:48 jmc Exp $
2df930be7Sderaadt.\"	$NetBSD: ttyflags.8,v 1.2 1995/03/18 15:01:22 cgd Exp $
3df930be7Sderaadt.\"
4df930be7Sderaadt.\" Copyright (c) 1994 Christopher G. Demetriou
5df930be7Sderaadt.\" All rights reserved.
6df930be7Sderaadt.\"
7df930be7Sderaadt.\" Redistribution and use in source and binary forms, with or without
8df930be7Sderaadt.\" modification, are permitted provided that the following conditions
9df930be7Sderaadt.\" are met:
10df930be7Sderaadt.\" 1. Redistributions of source code must retain the above copyright
11df930be7Sderaadt.\"    notice, this list of conditions and the following disclaimer.
12df930be7Sderaadt.\" 2. Redistributions in binary form must reproduce the above copyright
13df930be7Sderaadt.\"    notice, this list of conditions and the following disclaimer in the
14df930be7Sderaadt.\"    documentation and/or other materials provided with the distribution.
15df930be7Sderaadt.\" 3. All advertising materials mentioning features or use of this software
16df930be7Sderaadt.\"    must display the following acknowledgement:
17df930be7Sderaadt.\"      This product includes software developed by Christopher G. Demetriou.
18df930be7Sderaadt.\" 3. The name of the author may not be used to endorse or promote products
19df930be7Sderaadt.\"    derived from this software without specific prior written permission
20df930be7Sderaadt.\"
21df930be7Sderaadt.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22df930be7Sderaadt.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23df930be7Sderaadt.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24df930be7Sderaadt.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25df930be7Sderaadt.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26df930be7Sderaadt.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27df930be7Sderaadt.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28df930be7Sderaadt.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29df930be7Sderaadt.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30df930be7Sderaadt.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31df930be7Sderaadt.\"
32*9490d37cSjmc.Dd $Mdocdate: May 31 2007 $
33df930be7Sderaadt.Dt TTYFLAGS 8
3419244f19Smichaels.Os
35df930be7Sderaadt.Sh NAME
36df930be7Sderaadt.Nm ttyflags
37df930be7Sderaadt.Nd set device-specific flags for terminals
38df930be7Sderaadt.Sh SYNOPSIS
397349792aSaaron.Nm ttyflags
401410e271Sjmc.Op Fl pv
41df930be7Sderaadt.Op Fl a | Ar tty ...
42df930be7Sderaadt.Sh DESCRIPTION
4358aefd4bSaaron.Nm
44df930be7Sderaadtsets the device-specific flags for terminals, based on the flags
45df930be7Sderaadtfound on the terminal's line in
46df930be7Sderaadt.Pa /etc/ttys .
47df930be7Sderaadt.Pp
48df930be7SderaadtThe options are as follows:
49df930be7Sderaadt.Bl -tag -width Ds
50df930be7Sderaadt.It Fl a
51df930be7SderaadtSet the flags for all terminals in
52df930be7Sderaadt.Pa /etc/ttys .
5346f3f978Sderaadt.It Fl p
5446f3f978SderaadtPrint out flag information about each terminal, instead of setting
5546f3f978Sderaadtanything.
561410e271Sjmc.It Fl v
57c384f82dSjmcBe verbose about what the terminal's flags will be set to.
58df930be7Sderaadt.El
59df930be7Sderaadt.Pp
60df930be7SderaadtThe
61df930be7Sderaadt.Ar tty
62df930be7Sderaadtarguments are optional, but must not be specified if the
63df930be7Sderaadt.Fl a
649615e1d4Saaronflag is used.
659615e1d4SaaronIf specified, the
66df930be7Sderaadt.Ar tty
67df930be7Sderaadtarguments should be the base names of
68df930be7Sderaadtthe ttys, as found in
69df930be7Sderaadt.Pa /etc/ttys .
70df930be7Sderaadt.Sh FILES
71df930be7Sderaadt.Bl -tag -width /etc/ttys -compact
72df930be7Sderaadt.It Pa /etc/ttys
73df930be7Sderaadt.El
74df930be7Sderaadt.Sh SEE ALSO
75df930be7Sderaadt.Xr getttyent 3 ,
76df930be7Sderaadt.Xr ttys 5
77df930be7Sderaadt.Sh HISTORY
78df930be7SderaadtThe
7958aefd4bSaaron.Nm
80df930be7Sderaadtutility appeared in
81df930be7Sderaadt.Nx 0.9a .
82df930be7Sderaadt.Sh BUGS
83df930be7SderaadtThe conditions on which to report an error are ill-defined.
8458aefd4bSaaron.Nm
85df930be7Sderaadttries to report all significant errors, perhaps going over-board
86df930be7Sderaadtat times.
87