- define backspace as the delete character
#> stty
erase ^H
- list the terminal capabilities
#> infocmp -1
- return the type of the terminal
#> tput
longname
- return the number of columns and lines
#> tput
cols
#> tput
lines
- put the cursor at line <a>, column <b>
#> tput
cup <a> <b>
- clear the window
#> tput
clear
- write in bold
#> bold=`tput
smso`
#> boldoff=`tput
rmso`
#> echo "${bold}boobar${boldoff}"
- write in underline
#> under=`tput
smul`
#> underoff=`tput
rmul`
#> echo "${under}boobar${underoff}"
- return the number of buffered characters before display
#> tput
bufsz
- use the alternate charset
#> tput
smacs
return to the standard charset
#> tput
sgr
- return the supported number of colors
#> tput
colors
- return the supported number of color pairs
#> tput
pairs
- change the foreground or background color
#> tput
setf <n>
#> tput
setb <n>
articles:
Last update: April 29th,
2003 - Laurent