1tabs(1M)                                                              tabs(1M)
2
3
4

NAME

6       tabs - set tabs on a terminal
7

SYNOPSIS

9       tabs [-v[n]] [-ahuUV] file...
10

DESCRIPTION

12       The  tabs program clears and sets tab-stops on the terminal.  This uses
13       the terminfo clear_all_tabs and set_tab  capabilities.   If  either  is
14       absent,  tabs is unable to clear/set tab-stops.  The terminal should be
15       configured to use hard tabs, e.g.,
16
17              stty tab0
18

OPTIONS

20   General Options
21       -Tname
22            Tell tabs which terminal type to  use.   If  this  option  is  not
23            given,  tabs  will use the $TERM environment variable.  If that is
24            not set, it will use the ansi+tabs entry.
25
26       -d   The debugging option shows a ruler  line,  followed  by  two  data
27            lines.   The  first  data line shows the expected tab-stops marked
28            with asterisks.  The second data line shows the actual  tab-stops,
29            marked with asterisks.
30
31       -n   This  option tells tabs to check the options and run any debugging
32            option, but not to modify the terminal settings.
33
34       The tabs program processes a single list of tab stops.  The last option
35       to  be  processed  which  defines a list is the one that determines the
36       list to be processed.
37
38   Implicit Lists
39       Use a single number as an option, e.g., "-5" to set tabs at  the  given
40       interval  (in  this case 1, 6, 11, 16, 21, etc.).  Tabs are repeated up
41       to the right margin of the screen.
42
43   Explicit Lists
44       An explicit list can be defined after the options (this does not use  a
45       "-").   The values in the list must be in increasing numeric order, and
46       greater than zero.  They are separated by a comma or a blank, for exam‐
47       ple,
48
49              tabs 1,6,11,16,21
50              tabs 1 6 11 16 21
51       Use  a  '+'  to treat a number as an increment relative to the previous
52       value, e.g.,
53
54              tabs 1,+5,+5,+5,+5
55       which is equivalent to the 1,6,11,16,21 example.
56
57   Predefined Tab-Stops
58       X/Open defines several predefined lists of tab stops.
59
60       -a   Assembler, IBM S/370, first format
61
62       -a2  Assembler, IBM S/370, second format
63
64       -c   COBOL, normal format
65
66       -c2  COBOL compact format
67
68       -c3  COBOL compact format extended
69
70       -f   FORTRAN
71
72       -p   PL/I
73
74       -s   SNOBOL
75
76       -u   UNIVAC 1100 Assembler
77

PORTABILITY

79       X/Open describes a +m option, to set a terminal's left-margin.  None of
80       the entries in the terminal database provide this capability.
81
82       The  -d  (debug)  and -n (no-op) options are extensions not provided by
83       other implementations.
84
85       Documentation for other implementations states that there is a limit on
86       the  number of tab stops.  While some terminals may not accept an arbi‐
87       trary number of tab stops, this implementation will attempt to set  tab
88       stops  up  to the right margin of the screen, if the given list happens
89       to be that long.
90

SEE ALSO

92       tset(1), infocmp(1M), curses(3X), terminfo(5).
93
94       This describes ncurses version 5.7 (patch 20090207).
95
96
97
98                                                                      tabs(1M)
Impressum