Skip to content

Instantly share code, notes, and snippets.

@nerevar
Created July 15, 2012 20:00
Show Gist options
  • Save nerevar/3118396 to your computer and use it in GitHub Desktop.
Save nerevar/3118396 to your computer and use it in GitHub Desktop.
Draws a colored horizontal line and clear screen of terminal
# рисует горизонтальную линию и очищает экран
c()
{
SEPARATOR="-"
WIDTH=$(tput cols);
echo -e "\033[$(($RANDOM % 7 + 31))m"
for ((i=0; i<$WIDTH; i++)); do echo -n $SEPARATOR ; done
clear
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment