NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/39883: tput support for setaf terminfo sequence is broken



Sorry, I meant:
   if tput setaf 0; then
       black=$(tput setaf 0)
       red=$(tput setaf 1)
       ...
   elif tput AF 0; then
       black=$(tput AF 0)
       red=$(tput AF 1)
       ..
   fi

Wasn't working, but this does seem to work:
   if tput AF 0; then
       black=$(tput AF 0)
       red=$(tput AF 1)
       ..
   elif tput setaf 0; then
       black=$(tput setaf 0)
       red=$(tput setaf 1)
       ...
   fi


Home | Main Index | Thread Index | Old Index