termcolors: adapt to latest tset and fix output

This commit is contained in:
Lucas 2023-10-24 19:44:47 +00:00
parent 945e441173
commit 0d7fd8f76a
1 changed files with 4 additions and 4 deletions

View File

@ -12,18 +12,18 @@
printf " fg on bg "
for i in 0 1 2 3 4 5 6 7; do
tput setab $i 0 0
tput setab $i
printf " "
done
printf "\n"
tput sgr0
printf "\n"
tput rev
printf " bg on fg "
tput sgr0
for i in 0 1 2 3 4 5 6 7; do
tput setab $((i + 8)) 0 0
tput setab $((i + 8))
printf " "
done
printf "\n"
tput sgr0
printf "\n"