#!/bin/bash ## A script to show color effects using tput Move () { tput cup 0 0 # ## Blank one line # for ((cols=$COLUMNS; cols>0; cols-- ));do echo -n " ";done ## tput cup 3 20 echo "tput cup 3 20 moves cursor to 19th row (row 20) fourth column (column 3)" } Draw () { for i in {0..9} do tput setab $i echo -n "tput setab $i " for j in {0..4} do tput setaf $j echo -n "tput setaf $j " done echo echo -n " " for j in {5..9} do tput setaf $j echo -n "tput setaf $j " done echo done } Move Draw tput bold tput cuf 15 echo "tput bold" Draw read setterm -bold off