tabs (1p) - Linux Manuals
tabs: set terminal tabs
PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.NAME
tabs - set terminal tabs
SYNOPSIS
tabs [ -n| -a| -a2| -c| -c2| -c3| -f| -p|
-s|
-u][+m[n]] [-T
type]
tabs [-T type][ +[n]]
n1[,n2,...]
DESCRIPTION
The tabs utility shall display a series of characters that first clears the hardware terminal tab settings and then initializes the tab stops at the specified positions and optionally adjusts the margin.
The phrase "tab-stop position N" shall be taken to mean that, from the start of a line of output, tabbing to position N shall cause the next character output to be in the ( N+1)th column position on that line. The maximum number of tab stops allowed is terminal-dependent.
It need not be possible to implement tabs on certain terminals. If the terminal type obtained from the TERM environment variable or -T option represents such a terminal, an appropriate diagnostic message shall be written to standard error and tabs shall exit with a status greater than zero.
OPTIONS
The tabs utility shall conform to the Base Definitions volume
of IEEE Std 1003.1-2001, Section 12.2, Utility Syntax Guidelines,
The following options shall be supported:
The following operand shall be supported:
The following environment variables shall affect the execution of
tabs:
If standard output is a terminal, the appropriate sequence to clear
and set the tab stops may be written to standard output in
an unspecified format. If standard output is not a terminal, undefined
results occur.
The standard error shall be used only for diagnostic messages.
The following exit values shall be returned:
Default.
The following sections are informative.
This utility makes use of the terminal's hardware tabs and the stty
tabs
option.
This utility is not recommended for application use.
Some integrated display units might not have escape sequences to set
tab stops, but may be set by internal system calls. On
these terminals, tabs works if standard output is directed to
the terminal; if output is directed to another file, however,
tabs fails.
Consideration was given to having the tput utility handle all
of the functions
described in tabs. However, the separate tabs utility
was retained because it seems more intuitive to use a command
named tabs than tput with a new option. The tput
utility does not support setting or clearing tabs, and no known historical
version of
tabs supports the capability of setting arbitrary tab stops.
The System V tabs interface is very complex; the version in
this volume of IEEE Std 1003.1-2001 has a reduced
feature list, but many of the features omitted were restored as XSI
extensions even though the supported languages and coding
styles are primarily historical.
There was considerable sentiment for specifying only a means of resetting
the tabs back to a known state-presumably the
"standard" of tabs every eight positions. The following features were
omitted:
In an early proposal, a -t tablist option was added for
consistency with expand; this was later removed when inconsistencies
with the historical list of tabs were
identified.
Consideration was given to adding a -p option that would output
the current tab settings so that they could be saved and
then later restored. This was not accepted because querying the tab
stops of the terminal is not a capability in historical
terminfo or termcap facilities and might not be supported
on a wide range of terminals.
Assembler, applicable to some mainframes.
Assembler, applicable to some mainframes.
COBOL, normal format.
COBOL, compact format (columns 1 to 6 omitted).
COBOL compact format (columns 1 to 6 omitted), with more tabs than
-c2.
FORTRAN
PL/1
SNOBOL
Assembler, applicable to some mainframes.
OPERANDS
STDIN
INPUT FILES
ENVIRONMENT VARIABLES
ASYNCHRONOUS EVENTS
STDOUT
STDERR
OUTPUT FILES
EXTENDED DESCRIPTION
EXIT STATUS
CONSEQUENCES OF ERRORS
APPLICATION USAGE
EXAMPLES
RATIONALE
FUTURE DIRECTIONS
COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form
from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
-- Portable Operating System Interface (POSIX), The Open Group Base
Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .