xref: /netbsd-src/usr.bin/tabs/tabs.1 (revision 6cb10275d08f045e872662c371fe2f2724f2f6e6)
1*6cb10275Sriastradh.\" $NetBSD: tabs.1,v 1.6 2014/03/18 18:20:45 riastradh Exp $
23ec1800aSwiz.\"
3aa751245Sroy.\" Copyright (c) 2008 The NetBSD Foundation, Inc.
4aa751245Sroy.\" All rights reserved.
5aa751245Sroy.\"
6aa751245Sroy.\" This code is derived from software contributed to The NetBSD Foundation
7aa751245Sroy.\" by Roy Marples.
8aa751245Sroy.\"
9aa751245Sroy.\" Redistribution and use in source and binary forms, with or without
10aa751245Sroy.\" modification, are permitted provided that the following conditions
11aa751245Sroy.\" are met:
12aa751245Sroy.\" 1. Redistributions of source code must retain the above copyright
13aa751245Sroy.\"    notice, this list of conditions and the following disclaimer.
14aa751245Sroy.\" 2. Redistributions in binary form must reproduce the above copyright
15aa751245Sroy.\"    notice, this list of conditions and the following disclaimer in the
16aa751245Sroy.\"    documentation and/or other materials provided with the distribution.
17aa751245Sroy.\"
18aa751245Sroy.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19aa751245Sroy.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20aa751245Sroy.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21aa751245Sroy.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22aa751245Sroy.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23aa751245Sroy.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24aa751245Sroy.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25aa751245Sroy.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26aa751245Sroy.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27aa751245Sroy.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28aa751245Sroy.\" POSSIBILITY OF SUCH DAMAGE.
29aa751245Sroy.\"
30258cf0abSroy.Dd April 5, 2012
31aa751245Sroy.Dt TABS 1
32aa751245Sroy.Os
33aa751245Sroy.Sh NAME
34aa751245Sroy.Nm tabs
35aa751245Sroy.Nd set terminal tabs
36aa751245Sroy.Sh SYNOPSIS
37aa751245Sroy.Nm
38aa751245Sroy.Op Fl n Ns | Ns Fl a Ns | Ns Fl a2 Ns | Ns Fl c Ns | Ns Fl c2 \
39aa751245SroyNs | Ns Fl c3 Ns | Ns Fl f Ns | Ns Fl p Ns | Ns Fl s Ns | Ns Fl u
40aa751245Sroy.Op +m Ns Op n
41aa751245Sroy.Op Fl T Ar type
42aa751245Sroy.Nm
43aa751245Sroy.Op Fl T Ar type
44aa751245Sroy.Op + Ns Op n
45cc7b4e18Swiz.Ar n1 Ns Op , Ns Ar n2 , Ns Ar ...
46aa751245Sroy.Sh DESCRIPTION
47aa751245SroyThe
48aa751245Sroy.Nm
49aa751245Sroyutility displays a series of characters that first clears the hardware terminal
50aa751245Sroytab settings and then initializes the tab stops at the specified positions
51aa751245Sroyand optionally adjusts the margin.
52aa751245Sroy.Pp
53aa751245SroyThe phrase "tab-stop position N" means that, from the start of a line of
54aa751245Sroyoutput, tabbing to position N shall cause the next character output to be in
55aa751245Sroythe (N+1)th column on that line.
56aa751245Sroy.Pp
57aa751245SroyThe following options are supported:
58aa751245Sroy.Bl -tag -width Fl
59aa751245Sroy.It Fl Ar n
60aa751245SroySpecifies repetitive tab stops separated by a uniform number of columns,
61aa751245Sroy.Ar n ,
62aa751245Sroywhere
63aa751245Sroy.Ar n
64aa751245Sroyis a single digit decimal number.
65aa751245SroyThe default usage of
66aa751245Sroy.Nm
67aa751245Sroywith no arguments is equivalent to
68aa751245Sroy.Nm
69aa751245Sroy.Fl 8 .
70aa751245SroyWhen
71aa751245Sroy.Fl 0
72aa751245Sroyis used, the tab stops are cleared and no new ones set.
73aa751245Sroy.It Fl a
74aa751245SroyAssembler, applicable to some mainframes.
75aa751245SroyEquivalent to
76aa751245Sroy.Nm
77aa751245Sroy1,10,16,36,72 .
78aa751245Sroy.It Fl a2
79aa751245SroyAssembler, applicable to some mainframes.
80aa751245SroyEquivalent to
81aa751245Sroy.Nm
82aa751245Sroy1,10,16,40,72
83aa751245Sroy.It Fl c
84aa751245Sroy.Tn COBOL ,
85aa751245Sroynormal format.
86aa751245SroyEquivalent to
87aa751245Sroy.Nm
88aa751245Sroy1,8,12,16,20,55
89aa751245Sroy.It Fl c2
90aa751245Sroy.Tn COBOL ,
91aa751245Sroycompact format (columns 1 to 6 omitted).
92aa751245SroyEquivalent to
93aa751245Sroy.Nm
94aa751245Sroy1,6,10,14,49
95aa751245Sroy.It Fl c3
96aa751245Sroy.Tn COBOL ,
97aa751245Sroycompact format (columns 1 to 6 omitted), with more tabs than
98aa751245Sroy.Fl c2 .
99aa751245SroyEquivalent to
100aa751245Sroy.Nm
101aa751245Sroy1,6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,67
102aa751245Sroy.It Fl f
103aa751245Sroy.Tn FORTRAN .
104aa751245SroyEquivalent to
105aa751245Sroy.Nm
106aa751245Sroy1,7,11,15,19,23
107aa751245Sroy.It Fl p
108aa751245Sroy.Tn PL/1 .
109aa751245SroyEquivalent to
110aa751245Sroy.Nm
111aa751245Sroy1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61
112aa751245Sroy.It Fl s
113aa751245Sroy.Tn SNOBOL .
114aa751245SroyEquivalent to
115aa751245Sroy.Nm
116aa751245Sroy1,10,55
1173ec1800aSwiz.It Fl T Ar type
1183ec1800aSwizIndicates the type of terminal.
119aa751245Sroy.It Fl u
120aa751245SroyAssembler, applicable to some mainframes.
121aa751245SroyEquivalent to
122aa751245Sroy.Nm
123aa751245Sroy1,12,20,44
124aa751245Sroy.El
125aa751245Sroy.Sh ENVIRONMENT
126aa751245SroyThe
127aa751245Sroy.Ev COLUMNS
128aa751245Sroyand
129aa751245Sroy.Ev TERM
130aa751245Sroyenvironment variables affect the execution of
131aa751245Sroy.Nm
132aa751245Sroyas described in
133aa751245Sroy.Xr environ 7 .
134aa751245Sroy.Pp
135aa751245SroyThe
136aa751245Sroy.Fl T
137aa751245Sroyoption overrides
138aa751245Sroy.Ev TERM .
139aa751245SroyIf neither
140aa751245Sroy.Ev TERM
141aa751245Sroynor the
142aa751245Sroy.Fl T
143aa751245Sroyoption are present,
144aa751245Sroy.Nm
145aa751245Sroywill fail.
146cc7b4e18Swiz.Sh EXIT STATUS
147cc7b4e18Swiz.Ex -std
148aa751245Sroy.Sh SEE ALSO
149aa751245Sroy.Xr expand 1 ,
150aa751245Sroy.Xr stty 1 ,
151aa751245Sroy.Xr tput 1 ,
152aa751245Sroy.Xr unexpand 1 ,
153258cf0abSroy.Xr terminfo 5
154aa751245Sroy.Sh STANDARDS
155aa751245SroyThe
156aa751245Sroy.Nm
157aa751245Sroyutility conforms to
158aa751245Sroy.St -p1003.1 .
159aa751245Sroy.Sh HISTORY
160aa751245SroyA
161aa751245Sroy.Nm
162aa751245Sroyutility first appeared in PWB UNIX.
163aa751245SroyThis implementation was introduced in
164aa751245Sroy.Nx 6.0 .
1653ec1800aSwiz.Sh AUTHORS
166a5684d07Swiz.An Roy Marples Aq Mt roy@NetBSD.org
167