To elaborate on PHV's posting a little, tput bold will echo the appropriate escape codes for bold text on your current terminal setting, and tput sgr0 will echo the appropriate codes to reset it back to 'normal' text. man terminfo will give you a list of all of the terminal capabilities you can use with tput, although you'll find many are not supported by all terminals.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.