..one way to do this is to use "tput" and "terminfo" capabilities, if these are available. terminfo allows for the definition of colour attributes, and tput can access those definitions.
"tic" and "infocmp" are the methods used to compile and discover terminal capabilities.
Here's an example, using BOLD rather then a colour, assuming that smso and rmso have been defined in the terminfo database.
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.