May 2000
Beginner
761 pages
18h 20m
English
tput [ –Ttype ] capname [ parms…] tput [ –Ttype ] init tput [ –Ttype ] reset tput [ –Ttype ] longname tput –S <<
tput uses the terminfo database to make the values of terminal-dependent capabilities and information available to the shell, to initialize or reset the terminal, or return the long name of the requested terminal type.
1 tput longname 2 bold=`tput smso` unbold=`tput rmso` echo "${bold}Enter your id: ${offbold}\c" |
Explanation
Displays a long name for the terminal from the terminfo database.
Sets the shell variable bold to turn on the highlighting of displayed text. Then sets the shell variable, unbold, to return to normal text display. The line Enter your ...
Read now
Unlock full access