Monday, October 28, 2013

PROGRAM TO DISPLAY SCREEN HANDLING

#PROGRAM TO DISPLAY SCREEN HANDLING

echo "enter text";
read text
for (( i=10 ;i>0;i++ ))
do
echo "enter ur choice"

echo -e "1>Bold \n 2>underline \n 3>strikethrough \n 4>text color \n 5>baground";
read choice

case $choice in
1)
echo "bold"
echo -e "\033[01m  $text"
echo -e "\033[00m  ";;
2)
echo "underline"
echo -e "\033[04m $text"
echo -e "\033[00m  ";;
3)
echo "strikethruh"
echo -e "\033[09m  $text"
echo -e "\033[00m  ";;
4)
echo "text color 35"
echo -e "\033[35m  $text"
echo -e "\033[00m  ";;
5)
echo "background color 44"
echo -e "\033[044m  $text"
echo -e "\033[00m ";;

esac
done

No comments:

Post a Comment