I want to set the capname for use with tput. But I need to modify the following bash part to test whether the capname is valid, before computing erps.
What can I do
Code:
if [[ -n "$cn" ]]; then
erps="tput ${cn}"
fi
For capname I should have any one of the following attributes.
Code:
bold smul rmul rev blink invis smso rmso sgr0