TABS(1,C) AIX Commands Reference TABS(1,C)
-------------------------------------------------------------------------------
tabs
PURPOSE
Sets tab stops on work stations.
SYNTAX
+--- -8 ----+ +---- -T$Term -----+ +----- +m0 -------+
tabs ---| |---| |---| +- 10 --+ |---|
+- tabspec -+ +- -T workstation -+ +- +m --|1 |-+
+- num -+
-----------------
1 Do not put a space between these items.
DESCRIPTION
The tabs command clears up to 20 previous tabs and sets up to40 tabs on the
work station according to the supplied tabspec. tabspec can be either a flag
indicating an available code or column numbers. The available codes cover
formats required by most structured programming languages.
When you use the tabs command, always see the leftmost column number as 1, even
if your work station refers to it as zero (0).
If you do not specify a tabspec, the default value is -8.
Note: This command is for the PS/2 only.
TABSPECS
-a Sets the tabs to 1, 10, 16, 36, and 72 (IBM S/370 Assembler first format)
-a2
Sets the tabs to 1, 10, 16, 40, and 72 (IBM S/370 Assembler second format)
-c Sets the tabs to 1, 8, 12, 16, 20, and 55 (COBOL normal format)
-c2
Sets the tabs to 1, 6, 10, 14, and 49 (COBOL compact format, columns 1-6
omitted). With this code, the first column position corresponds to card
column 7. One space gets you to column 8, and a tab reaches column 12.
Files using this code should include a format specification of:
<:t-c2 m6 s66 d:>
Processed November 8, 1990 TABS(1,C) 1
TABS(1,C) AIX Commands Reference TABS(1,C)
For an explanation of format specifications, see the fspec file in AIX
Operating System Technical Reference.
-c3
Sets the tabs to 1, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58,
62, and 67 (COBOL compact format with more tabs than -c2. This is the
recommended format for COBOL. Files using this code should include a format
specification of:
<:t-c3 m6 s66 d:>
-f Sets the tabs to 1, 7, 11, 15, 19, and 23 (FORTRAN).
-p Sets the tabs to 1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57,
and 61 (PL/I).
-s Sets the tabs to 1, 10, and 55 (SNOBOL).
-u Sets the tabs to 1, 12, 20, and 44.
In addition to the preset formats, three other types of tabspecs are available:
-num Sets regularly repeating tabs at every numth column. (-8 is the
standard AIX tab setting and the one required for use with the
nroff -h flag.) Another special case is -0, which implies no tabs
at all.
num[,num]...
Sets tabs at the named column numbers (a comma-separated list in
ascending order). You may specify up to 40 numbers. If any number
except the first has a plus sign prefix, the prefixed number is
added to the previous number for the next setting. Thus, the tab
lists "1,10,20,30" and "1,10,+10,+10" provide the same tab
settings.
--filep Reads the first line of the named filep for a format specification.
If it finds one, it sets tabs the same way. If it does not find a
format specification, it sets tabs to the system default (-8). Use
this tabspec to make sure that a file has the same tab settings as
those in a file already correctly formatted.
FLAGS
Note: If the same flag occurs more than once, only the last one takes effect.
-Tworkstation Identifies the work station so that tabs can set tabs and
margins correctly.
300 DASI 300.
300-12 DASI in 12-pitch.
300s DASI 300s.
Processed November 8, 1990 TABS(1,C) 2
TABS(1,C) AIX Commands Reference TABS(1,C)
300s-12 DASI 300s in 12-pitch
450 DASI 450.
450-12 DASI 450 in 12-pitch.
1620 Diablo 1620 (alias DASI 450).
1620-12 Diablo 1620 (alias DASI 450) in 12-pitch.
2621 Hewlett-Packard 2621, 2640, and 2645.
2640 Hewlett-Packard 2621, 2640, and 2645.
2645 Hewlett-Packard 2621, 2640, and 2645.
4014 Tektronix 4014
hp Hewlett-Packard 2621, 2640, and 2645.
tek Tektronix 4014.
If you do not provide a -T flag, tabs uses the shell variable
$TERM. If the terminal type specified by $TERM is not
supported, tabs will not work property. If no workstation can
be found, tabs tries a general value that works for most work
stations.
+mnum Moves all tabs to the right num columns, and makes column
num+1 the left margin. If m is given without a value, 10 is
assumed. The leftmost margin on most work stations is defined
by m0.
RELATED INFORMATION
See the following commands: "nroff, troff."
See the discussion of term and environ in AIX Operating System Technical
Reference.
Processed November 8, 1990 TABS(1,C) 3