1.\" Copyright (c) 2002 Tim J. Robbins. 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. 9.\" 2. Redistributions in binary form must reproduce the above copyright 10.\" notice, this list of conditions and the following disclaimer in the 11.\" documentation and/or other materials provided with the distribution. 12.\" 13.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" 25.\" $FreeBSD: src/usr.bin/tabs/tabs.1,v 1.6 2002/11/26 17:33:36 ru Exp $ 26.\" $DragonFly: src/usr.bin/tabs/tabs.1,v 1.2 2005/08/01 01:49:18 swildner Exp $ 27.\" 28.Dd June 19, 2004 29.Dt TABS 1 30.Os 31.Sh NAME 32.Nm tabs 33.Nd set terminal tabs 34.Sh SYNOPSIS 35.Nm 36.Op Fl Ar n | Fl a | a2 | c | c2 | c3 | f | p | s | u 37.Op Cm +m Ns Op Ar n 38.Op Fl T Ar type 39.Nm 40.Op Fl T Ar type 41.Op Cm + Ns Op Ar n 42.Ar n1 Ns Op Ns , Ns Ar n2 , Ns ... 43.Sh DESCRIPTION 44The 45.Nm 46utility displays a series of characters that clear the hardware terminal 47tab settings then initialises tab stops at specified positions, and 48optionally adjusts the margin. 49.Pp 50In the first synopsis form, the tab stops set depend on the command line 51options used, and may be one of the predefined formats or at regular 52intervals. 53.Pp 54In the second synopsis form, tab stops are set at positions 55.Ar n1 , n2 , 56etc. 57If a position is preceded by a 58.Ql + , 59it is relative to the previous position set. 60No more than 20 positions may be specified. 61.Pp 62If no tab stops are specified, the 63.Dq standard 64.Ux 65tab width of 8 is used. 66.Pp 67The options are as follows: 68.Bl -tag -width indent 69.It Fl Ar n 70Set a tab stop every 71.Ar n 72columns. 73If 74.Ar n 75is 0, the tab stops are cleared but no new ones are set. 76.It Fl a 77Assembler format (columns 1, 10, 16, 36, 72). 78.It Fl a2 79Assembler format (columns 1, 10, 16, 40, 72). 80.It Fl c 81.Tn COBOL 82normal format (columns 1, 8, 12, 16, 20, 55) 83.It Fl c2 84.Tn COBOL 85compact format (columns 1, 6, 10, 14, 49) 86.It Fl c3 87.Tn COBOL 88compact format (columns 1, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 8950, 54, 58, 62, 67). 90.It Fl f 91.Tn FORTRAN 92format (columns 1, 7, 11, 15, 19, 23). 93.It Fl p 94.Tn PL/1 95format (columns 1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 9657, 61). 97.It Fl s 98.Tn SNOBOL 99format (columns 1, 10, 55). 100.It Fl u 101Assembler format (columns 1, 12, 20, 44). 102.It Xo 103.Cm +m Ns Op Ar n , 104.Cm + Ns Op Ar n 105.Xc 106Set an 107.Ar n 108character left margin, or 10 if 109.Ar n 110is omitted. 111.It Fl T Ar type 112Output escape sequence for the terminal type 113.Ar type . 114.El 115.Sh ENVIRONMENT 116The 117.Ev LANG , LC_ALL , LC_CTYPE 118and 119.Ev TERM 120environment variables affect the execution of 121.Nm 122as described in 123.Xr environ 7 . 124.Pp 125The 126.Fl T 127option overrides the setting of the 128.Ev TERM 129environment variable. 130If neither 131.Ev TERM 132nor the 133.Fl T 134option are present, 135.Nm 136will fail. 137.Sh DIAGNOSTICS 138.Ex -std 139.Sh SEE ALSO 140.Xr expand 1 , 141.Xr stty 1 , 142.Xr tput 1 , 143.Xr unexpand 1 , 144.Xr termcap 5 145.Sh STANDARDS 146The 147.Nm 148utility conforms to 149.St -p1003.1-2001 . 150.Sh HISTORY 151A 152.Nm 153utility appeared in PWB UNIX. 154.Sh BUGS 155The current 156.Xr termcap 5 157database does not define the 158.Ql ML 159(set left soft margin) capability for any terminals. 160