]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/tabs.1
ncurses 5.9 - patch 20130805
[ncurses.git] / man / tabs.1
1 .\"***************************************************************************
2 .\" Copyright (c) 2008-2011,2013 Free Software Foundation, Inc.              *
3 .\"                                                                          *
4 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
5 .\" copy of this software and associated documentation files (the            *
6 .\" "Software"), to deal in the Software without restriction, including      *
7 .\" without limitation the rights to use, copy, modify, merge, publish,      *
8 .\" distribute, distribute with modifications, sublicense, and/or sell       *
9 .\" copies of the Software, and to permit persons to whom the Software is    *
10 .\" furnished to do so, subject to the following conditions:                 *
11 .\"                                                                          *
12 .\" The above copyright notice and this permission notice shall be included  *
13 .\" in all copies or substantial portions of the Software.                   *
14 .\"                                                                          *
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
16 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
17 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
18 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
19 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
20 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
21 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
22 .\"                                                                          *
23 .\" Except as contained in this notice, the name(s) of the above copyright   *
24 .\" holders shall not be used in advertising or otherwise to promote the     *
25 .\" sale, use or other dealings in this Software without prior written       *
26 .\" authorization.                                                           *
27 .\"***************************************************************************
28 .\"
29 .\" $Id: tabs.1,v 1.11 2013/06/22 18:11:57 tom Exp $
30 .TH @TABS@ 1 ""
31 .ds n 5
32 .SH NAME
33 \fB@TABS@\fR \- set tabs on a terminal
34 .SH SYNOPSIS
35 \fB@TABS@\fR [\fIoptions\fR]] \fI[tabstop-list]\fR
36 .SH DESCRIPTION
37 .PP
38 The \fB@TABS@\fP program clears and sets tab-stops on the terminal.
39 This uses the terminfo \fIclear_all_tabs\fP and \fIset_tab\fP capabilities.
40 If either is absent, \fB@TABS@\fP is unable to clear/set tab-stops.
41 The terminal should be configured to use hard tabs, e.g.,
42 .sp
43 .RS
44 stty tab0
45 .RE
46 .SH OPTIONS
47 .SS General Options
48 .TP 5
49 .BI \-T "name"
50 Tell \fB@TABS@\fP which terminal type to use.
51 If this option is not given, \fB@TABS@\fP will use the \fB$TERM\fP
52 environment variable.
53 If that is not set, it will use the \fIansi+tabs\fP entry.
54 .TP 5
55 .B \-d
56 The debugging option shows a ruler line, followed by two data lines.
57 The first data line shows the expected tab-stops marked with asterisks.
58 The second data line shows the actual tab-stops, marked with asterisks.
59 .TP 5
60 .B \-n
61 This option tells \fB@TABS@\fP to check the options and run any debugging
62 option, but not to modify the terminal settings.
63 .TP
64 \fB\-V\fR
65 reports the version of ncurses which was used in this program, and exits.
66 .PP
67 The \fB@TABS@\fP program processes a single list of tab stops.
68 The last option to be processed which defines a list is the one that
69 determines the list to be processed.
70 .SS Implicit Lists
71 Use a single number as an option, e.g., "\fB\-5\fP" to set tabs at the given
72 interval (in this case 1, 6, 11, 16, 21, etc.).  Tabs are repeated up to
73 the right margin of the screen.
74 .PP
75 Use "\fB\-0\fP" to clear all tabs.
76 .PP
77 Use "\fB\-8\fP" to set tabs to the standard interval.
78 .SS Explicit Lists
79 An explicit list can be defined after the options (this does not use a "\-").
80 The values in the list must be in increasing numeric order, and greater than
81 zero.  They are separated by a comma or a blank, for example,
82 .sp
83 .RS
84 tabs 1,6,11,16,21
85 .br
86 tabs 1 6 11 16 21
87 .RE
88 Use a '+' to treat a number as an increment relative to the previous value,
89 e.g.,
90 .sp
91 .RS
92 tabs 1,+5,+5,+5,+5
93 .RE
94 which is equivalent to the 1,6,11,16,21 example.
95 .SS Predefined Tab-Stops
96 X/Open defines several predefined lists of tab stops.
97 .TP 5
98 .B \-a
99 Assembler, IBM S/370, first format
100 .TP 5
101 .B \-a2
102 Assembler, IBM S/370, second format
103 .TP 5
104 .B \-c
105 COBOL, normal format
106 .TP 5
107 .B \-c2
108 COBOL compact format
109 .TP 5
110 .B \-c3
111 COBOL compact format extended
112 .TP 5
113 .B \-f
114 FORTRAN
115 .TP 5
116 .B \-p
117 PL/I
118 .TP 5
119 .B \-s
120 SNOBOL
121 .TP 5
122 .B \-u
123 UNIVAC 1100 Assembler
124 .SH PORTABILITY
125 .PP
126 X/Open describes a \fB+m\fP option, to set a terminal's left-margin.
127 Very few of the entries in the terminal database provide this capability.
128 .PP
129 The \fB\-d\fP (debug) and \fB\-n\fP (no-op) options are extensions not provided
130 by other implementations.
131 .PP
132 Documentation for other implementations states that there is a limit on the
133 number of tab stops.  While some terminals may not accept an arbitrary number
134 of tab stops, this implementation will attempt to set tab stops up to the
135 right margin of the screen, if the given list happens to be that long.
136 .SH SEE ALSO
137 \fB@TSET@\fR(1),
138 \fB@INFOCMP@\fR(1M),
139 \fBcurses\fR(3X),
140 \fBterminfo\fR(\*n).
141 .PP
142 This describes \fBncurses\fR
143 version @NCURSES_MAJOR@.@NCURSES_MINOR@ (patch @NCURSES_PATCH@).