Advertisement
Guest User

Colorshell

a guest
Jun 8th, 2010
2,429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. bash 2>&1 | awk 'BEGIN{   printf "Welcome to %s 0.1beta\n",c("colorshell");   srand();   printf ">> ";}function plop(nb){   nb = int(rand()*9)+30;   return nb;}function c(str,ret){ split(str,tab,""); ret = ""; for (i=0;i<length(tab);i++){  random=plop();  if (random == 30) {   random = 0;  }  ret = sprintf("%s\033[%dm%s\033[m",ret,random,tab[i]); } return ret;}{   printf "%s\n",c($0);   printf ">> ";}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement