Query: tput
OS: netbsd
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
TPUT(1) BSD General Commands Manual TPUT(1)NAMEtput, clear -- terminal capability interfaceSYNOPSIStput [-T term] attribute [attribute-args] ...DESCRIPTIONtput makes terminal-dependent information available to users or shell applications. The options are as follows: -T The terminal name as specified in the terminfo(5) database, for example, ``vt100'' or ``xterm''. If not specified, tput retrieves the ``TERM'' variable from the environment. tput outputs a string if the attribute is of type string; a number if it is of type integer. Otherwise, tput exits 0 if the terminal has the capability and 1 if it does not, without further action. 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(5) ``cl'' sequence). init Initialize the terminal (the terminfo(5) ``is2'' sequence). longname Print the descriptive name of the user's terminal type. reset Reset the terminal (the terminfo(5) ``rs1, rs2, rs3'' and ``rf'' sequence).EXIT STATUSThe exit status of tput is based on the last attribute specified. If the attribute is of type string or of type integer, tput exits 0 if the attribute is defined for this terminal type and 1 if it is not. If the attribute is of type boolean, tput exits 0 if the terminal has this attribute, and 1 if it does not. tput exits 2 if any error occurred.EXAMPLEStput cl cm 5 10 clear the screen and goto line 5 column 10 tput cm 6 11 DC 6 goto line 6 column 11 and delete 6 charactersSEE ALSOtermcap(3), termcap(5)HISTORYThe tput command appears in 4.4BSD.BUGStput can't really distinguish between different types of attributes. Not all terminfo entries contain the reset sequence, so using the init sequence may be more useful.BSDSeptember 29, 2009 BSD
Related Man Pages |
---|
tput(1) - opensolaris |
tput(1) - redhat |
tput(1) - netbsd |
tput(1) - sunos |
clear(1) - freebsd |
Similar Topics in the Unix Linux Community |
---|
problem with incorporating tput in a c program |
tput clear |
clear works for root but not for other users |
Output of Shell Script Doesn't Skip to next line |
How to shorten my code? |