一到七夕就好激动,可是作为我们怎么表白呢!
如何可以来一个不一样的表白呢!
一束蓝色妖姬,一个烛光晚餐,还是其他的啥?
如果在这个之后,再来一个我们别样的小操作,是不是会有意外的感觉呢!
先看效果图:
代码如下:可以自己根据情况删改
#!/bin/bash
#------------------------------------------echo
read -t 20 -p "name:" name
echo -e "\n"
#------------------------------------------hanshu
#------------------------------------------color
function echo_color(){
if [ $1 == "hei" ]; then
echo -e "\033[30;41m$2\033[0m"
elif [ $1 == "lv" ]; then
echo -e "\033[32;41m$2\033[0m"
elif [ $1 == "huang" ]; then
echo -e "\033[33;41m$2\033[0m"
elif [ $1 == "lan" ]; then
echo -e "\033[34;41m$2\033[0m"
elif [ $1 == "zi" ]; then
echo -e "\033[35;41m$2\033[0m"
elif [ $1 == "lan" ]; then
echo -e "\033[36;41m$2\033[0m"
elif [ $1 == "bai" ]; then
echo -e "\033[37;41m$2\033[0m"
elif [ $1 == "red" ]; then
echo -e "\033[31;41m$2\033[0m"
fi
}