icon Top 9 categories map      RocketAware >

tput(1)

Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.


The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Home

Search all pages


Subjects

By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Math
Integer, Floating point, Matrix, Statistics, Boolean, ...

Processing
Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Communications
Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...

    

RocketLink!--> Man page versions: OpenBSD FreeBSD NetBSD RedHat Solaris Others



TPUT(1)                    OpenBSD Reference Manual                    TPUT(1)

NAME
     tput - terminal capability interface



SYNOPSIS
     tput [-T term] attribute [attribute-args] ...
     tput [-T term] -S

DESCRIPTION
     The tput utility makes terminal-dependent information available to users
     or shell applications.

     The options are as follows:

     -T      The terminal name as found in the terminfo database; for example,
             ``vt100'' or ``xterm''. If not specified, tput retrieves the TERM
             variable from the environment.

     -S      The attributes are read from stdin instead of the command line.

     tput outputs a string if the attribute is of type string or a number if
     it is of type integer.  If the attribute is of type boolean, tput exits 0
     if the terminal has the capability or 1 if it does not.  Each attribute
     should be a string defined in either terminfo(5) or termcap(5).

     If the attribute is of type string and takes arguments (e.g., cursor
     movement, the terminfo ``cup'' sequence) the arguments are taken from the
     command line immediately following the attribute.

     The following special attributes are available:

     clear         Clear the screen (the terminfo ``clear'' sequence).

     init          Print the terminfo initialization strings for the specified
                   terminal.

     longname      Print the descriptive name of the user's terminal type.

     reset         Reset the terminal (using the terminfo reset sequences).

DIAGNOSTICS
     The exit value of tput is based on the last attribute specified.  If the
     attribute is of type string or of type integer the exit value is as fol-
     lows:

           0       The requested string was written successfully.
           2       Usage error.
           3       Unknown terminal type.
           4       Unknown attribute name.
           >4      An error occurred.

     If the attribute is of type boolean, tput exits with a value of 0 if the
     terminal has this attribute or 1 if it does not.

EXAMPLES
     tput clear cup 5 10  clear the screen and goto line 5 column 10

     tput cup 6 11 dch 6  goto line 6 column 11 and delete 6 characters

SEE ALSO
     terminfo(3),  terminfo(5)

BUGS
     tput can't really distinguish between different types of attributes.

HISTORY
     The tput utility appeared in 4.4BSD.

OpenBSD 2.6                      June 29, 1999                               2

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.



(Corrections, notes, and links courtesy of RocketAware.com)


[Detailed Topics]
FreeBSD Sources for tput(1)
OpenBSD sources for tput(1)


[Overview Topics]

Up to: Text Output - generating text and character output.
Up to: Graphical Output - Generating Graphical output and images, including fonts, displays, printing


RocketLink!--> Man page versions: OpenBSD FreeBSD NetBSD RedHat Solaris Others






Rapid-Links: Search | About | Comments | Submit Path: RocketAware > tput.1/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments