xref: /freebsd/usr.bin/tabs/tabs.1 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1890a73edSTim J. Robbins.\" Copyright (c) 2002 Tim J. Robbins.
2890a73edSTim J. Robbins.\" All rights reserved.
3890a73edSTim J. Robbins.\"
4890a73edSTim J. Robbins.\" Redistribution and use in source and binary forms, with or without
5890a73edSTim J. Robbins.\" modification, are permitted provided that the following conditions
6890a73edSTim J. Robbins.\" are met:
7890a73edSTim J. Robbins.\" 1. Redistributions of source code must retain the above copyright
8890a73edSTim J. Robbins.\"    notice, this list of conditions and the following disclaimer.
9890a73edSTim J. Robbins.\" 2. Redistributions in binary form must reproduce the above copyright
10890a73edSTim J. Robbins.\"    notice, this list of conditions and the following disclaimer in the
11890a73edSTim J. Robbins.\"    documentation and/or other materials provided with the distribution.
12890a73edSTim J. Robbins.\"
13890a73edSTim J. Robbins.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14890a73edSTim J. Robbins.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15890a73edSTim J. Robbins.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16890a73edSTim J. Robbins.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17890a73edSTim J. Robbins.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18890a73edSTim J. Robbins.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19890a73edSTim J. Robbins.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20890a73edSTim J. Robbins.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21890a73edSTim J. Robbins.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22890a73edSTim J. Robbins.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23890a73edSTim J. Robbins.\" SUCH DAMAGE.
24890a73edSTim J. Robbins.\"
25*d780a23aSWarner Losh.Dd September 9, 2021
26890a73edSTim J. Robbins.Dt TABS 1
27890a73edSTim J. Robbins.Os
28890a73edSTim J. Robbins.Sh NAME
29890a73edSTim J. Robbins.Nm tabs
30890a73edSTim J. Robbins.Nd set terminal tabs
31890a73edSTim J. Robbins.Sh SYNOPSIS
32890a73edSTim J. Robbins.Nm
33890a73edSTim J. Robbins.Op Fl Ar n | Fl a | a2 | c | c2 | c3 | f | p | s | u
34890a73edSTim J. Robbins.Op Cm +m Ns Op Ar n
35890a73edSTim J. Robbins.Op Fl T Ar type
36890a73edSTim J. Robbins.Nm
37890a73edSTim J. Robbins.Op Fl T Ar type
38890a73edSTim J. Robbins.Op Cm + Ns Op Ar n
39890a73edSTim J. Robbins.Ar n1 Ns Op Ns , Ns Ar n2 , Ns ...
40890a73edSTim J. Robbins.Sh DESCRIPTION
41890a73edSTim J. RobbinsThe
42890a73edSTim J. Robbins.Nm
43890a73edSTim J. Robbinsutility displays a series of characters that clear the hardware terminal
44890a73edSTim J. Robbinstab settings then initialises tab stops at specified positions, and
45890a73edSTim J. Robbinsoptionally adjusts the margin.
46890a73edSTim J. Robbins.Pp
47890a73edSTim J. RobbinsIn the first synopsis form, the tab stops set depend on the command line
48890a73edSTim J. Robbinsoptions used, and may be one of the predefined formats or at regular
49890a73edSTim J. Robbinsintervals.
50890a73edSTim J. Robbins.Pp
51890a73edSTim J. RobbinsIn the second synopsis form, tab stops are set at positions
5214387c71SRuslan Ermilov.Ar n1 , n2 ,
53890a73edSTim J. Robbinsetc.
54890a73edSTim J. RobbinsIf a position is preceded by a
55890a73edSTim J. Robbins.Ql + ,
56890a73edSTim J. Robbinsit is relative to the previous position set.
57890a73edSTim J. RobbinsNo more than 20 positions may be specified.
58890a73edSTim J. Robbins.Pp
59890a73edSTim J. RobbinsIf no tab stops are specified, the
6014387c71SRuslan Ermilov.Dq standard
6114387c71SRuslan Ermilov.Ux
62890a73edSTim J. Robbinstab width of 8 is used.
63890a73edSTim J. Robbins.Pp
64890a73edSTim J. RobbinsThe options are as follows:
65890a73edSTim J. Robbins.Bl -tag -width indent
66890a73edSTim J. Robbins.It Fl Ar n
67890a73edSTim J. RobbinsSet a tab stop every
68890a73edSTim J. Robbins.Ar n
69890a73edSTim J. Robbinscolumns.
70890a73edSTim J. RobbinsIf
71890a73edSTim J. Robbins.Ar n
72890a73edSTim J. Robbinsis 0, the tab stops are cleared but no new ones are set.
73890a73edSTim J. Robbins.It Fl a
74890a73edSTim J. RobbinsAssembler format (columns 1, 10, 16, 36, 72).
75890a73edSTim J. Robbins.It Fl a2
76890a73edSTim J. RobbinsAssembler format (columns 1, 10, 16, 40, 72).
77890a73edSTim J. Robbins.It Fl c
78e8d02764STim J. Robbins.Tn COBOL
79e8d02764STim J. Robbinsnormal format (columns 1, 8, 12, 16, 20, 55)
80890a73edSTim J. Robbins.It Fl c2
81e8d02764STim J. Robbins.Tn COBOL
82e8d02764STim J. Robbinscompact format (columns 1, 6, 10, 14, 49)
83890a73edSTim J. Robbins.It Fl c3
84e8d02764STim J. Robbins.Tn COBOL
85e8d02764STim J. Robbinscompact format (columns 1, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46,
86890a73edSTim J. Robbins50, 54, 58, 62, 67).
87890a73edSTim J. Robbins.It Fl f
88e8d02764STim J. Robbins.Tn FORTRAN
89e8d02764STim J. Robbinsformat (columns 1, 7, 11, 15, 19, 23).
90890a73edSTim J. Robbins.It Fl p
91e8d02764STim J. Robbins.Tn PL/1
92e8d02764STim J. Robbinsformat (columns 1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53,
93890a73edSTim J. Robbins57, 61).
94890a73edSTim J. Robbins.It Fl s
95e8d02764STim J. Robbins.Tn SNOBOL
96e8d02764STim J. Robbinsformat (columns 1, 10, 55).
97890a73edSTim J. Robbins.It Fl u
98890a73edSTim J. RobbinsAssembler format (columns 1, 12, 20, 44).
99890a73edSTim J. Robbins.It Xo
100890a73edSTim J. Robbins.Cm +m Ns Op Ar n ,
101890a73edSTim J. Robbins.Cm + Ns Op Ar n
102890a73edSTim J. Robbins.Xc
103890a73edSTim J. RobbinsSet an
104890a73edSTim J. Robbins.Ar n
105890a73edSTim J. Robbinscharacter left margin, or 10 if
106890a73edSTim J. Robbins.Ar n
107890a73edSTim J. Robbinsis omitted.
108890a73edSTim J. Robbins.It Fl T Ar type
109890a73edSTim J. RobbinsOutput escape sequence for the terminal type
110890a73edSTim J. Robbins.Ar type .
111890a73edSTim J. Robbins.El
112890a73edSTim J. Robbins.Sh ENVIRONMENT
113c9ca2584STim J. RobbinsThe
11406e482e6SRuslan Ermilov.Ev LANG , LC_ALL , LC_CTYPE
115c9ca2584STim J. Robbinsand
116890a73edSTim J. Robbins.Ev TERM
117c9ca2584STim J. Robbinsenvironment variables affect the execution of
118c9ca2584STim J. Robbins.Nm
119c9ca2584STim J. Robbinsas described in
120c9ca2584STim J. Robbins.Xr environ 7 .
121c9ca2584STim J. Robbins.Pp
122c9ca2584STim J. RobbinsThe
123890a73edSTim J. Robbins.Fl T
124c9ca2584STim J. Robbinsoption overrides the setting of the
125c9ca2584STim J. Robbins.Ev TERM
126c9ca2584STim J. Robbinsenvironment variable.
127c9ca2584STim J. RobbinsIf neither
128c9ca2584STim J. Robbins.Ev TERM
129c9ca2584STim J. Robbinsnor the
130c9ca2584STim J. Robbins.Fl T
131c9ca2584STim J. Robbinsoption are present,
132890a73edSTim J. Robbins.Nm
133890a73edSTim J. Robbinswill fail.
134a866e170SRuslan Ermilov.Sh EXIT STATUS
135890a73edSTim J. Robbins.Ex -std
136890a73edSTim J. Robbins.Sh SEE ALSO
137890a73edSTim J. Robbins.Xr expand 1 ,
138890a73edSTim J. Robbins.Xr stty 1 ,
139890a73edSTim J. Robbins.Xr tput 1 ,
140890a73edSTim J. Robbins.Xr unexpand 1 ,
141890a73edSTim J. Robbins.Xr termcap 5
142890a73edSTim J. Robbins.Sh STANDARDS
143890a73edSTim J. RobbinsThe
144890a73edSTim J. Robbins.Nm
145890a73edSTim J. Robbinsutility conforms to
146890a73edSTim J. Robbins.St -p1003.1-2001 .
147890a73edSTim J. Robbins.Sh HISTORY
148*d780a23aSWarner Losh.Pa /etc/tabs
149*d780a23aSWarner Loshappeared in
150*d780a23aSWarner Losh.At v1
151*d780a23aSWarner Loshwhich set tabs every 8 on Teletype model 37 and compatible printing terminals
152*d780a23aSWarner Loshwhen printed.
153890a73edSTim J. RobbinsA
154890a73edSTim J. Robbins.Nm
155*d780a23aSWarner Loshutility that worked on many terminals appeared in PWB UNIX.
156890a73edSTim J. RobbinsThis implementation was introduced in
157890a73edSTim J. Robbins.Fx 5.0 .
158890a73edSTim J. Robbins.Sh BUGS
159890a73edSTim J. RobbinsThe current
160890a73edSTim J. Robbins.Xr termcap 5
161890a73edSTim J. Robbinsdatabase does not define the
162890a73edSTim J. Robbins.Ql ML
163890a73edSTim J. Robbins(set left soft margin) capability for any terminals.
164