Created
March 22, 2020 18:48
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Code example to shared snippets | |
send_msg(){ | |
tput cnorm | |
echo -e "\n\e[31;1mBye!\e[m" | |
exit 127 | |
} | |
trap send_msg SIGINT | |
tput civis | |
while true; | |
do | |
echo -en "\r\e[33;1mThis is \e[36mMy Code\e[34m at \e[37m$(date +%d/%m/%Y-%H:%M:%S)\e[m" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment