[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Matrix
From: |
Julio C. Neves |
Subject: |
Matrix |
Date: |
Thu, 17 Sep 2009 23:23:24 -0300 |
Pessoal,
muito se falou em Matrix e fui no histórico da lista procurar um que fiz.
Achei esse aqui, mas acho que já fiz outro melhor, só que não achei.
#!/bin/bash
trap "echo -e '\033[m0';clear;setterm -cursor on;exit" 2
setterm -cursor off
Chars="abcdefghijklmnopqrstuvxywzABCDEFGHIJKLMNOPQRSTUVXYWZ01234567890!@#$%¨&*()_-+=^~{}[];:?"
clear
while true; do
lin=0
[ ${#Cols[@]} -eq $(($(tput cols)-2)) ] && unset Cols
while true; do
COL=$((RANDOM%$(tput cols)))
[ "${Cols[$COL]}" ] && continue
Cols[$COL]=1
break
done
COR="\e[3$((RANDOM%7+1));1m"
while [ $lin -lt $(tput lines) ]; do
Char=$(echo $Chars | cut -c$((RANDOM%86+1)))
for i in `seq 1 5`;do
Char1=$(echo $Chars | cut -c$i);sleep 0.000001
tput cup $lin $COL; echo -en "\e[37;1m$Char1"
done
tput cup $lin $COL; echo -en "$COR$Char";sleep 0.0001
let lin++
done
done
Abraços,
Julio
Cursos de Shell e Zenity em 2 fins de semana?
- Em SP ligue (11) 2125-4747;
- Em DF ligue (61) 3223-3000;
- No RJ ligue (21) 2561-0867;
- Turmas fechadas em outras cidades ligue (21) 8112-9988.
[As partes desta mensagem que não continham texto foram removidas]
- Matrix,
Julio C. Neves <=
- Re: [shell-script] Matrix, Jeferson Santos, 2009/09/18
- Re: [shell-script] Matrix, Wellton Costa de Oliveira, 2009/09/18
- Re: [shell-script] Matrix, Julio C. Neves, 2009/09/18
- Re: [shell-script] Matrix, Wellton Costa de Oliveira, 2009/09/18
- Re: [shell-script] Matrix, Arkanon, 2009/09/18
- Re: [shell-script] Matrix, Wellton Costa de Oliveira, 2009/09/18
- Re: [shell-script] Matrix, Arkanon, 2009/09/18
- Re: [shell-script] Matrix, Arkanon, 2009/09/18