[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] script Matrix - colaborativo
From: |
Danyllo Carvalho |
Subject: |
Re: [shell-script] script Matrix - colaborativo |
Date: |
Tue, 04 Dec 2007 11:45:52 -0300 |
Na linha 94 do arquivo o [ $lin1 -eq $(tput lines) ] && lin1=$((RANDOM%
$(tput lines)));COL2=$((RANDOM%$(tput cols)));coluna2
...fica em uma linda só, no seu está havendo uma quebra no tput lines,
provavelmente...
Verifique isso
Abraços a todos da lista
Danyllo
Em Qui, 2006-06-08 às 22:39 -0300, Filipe Batista (Lipse) escreveu:
> 2006/6/8, Fernando Ortiz <address@hidden>:
> >
> > Eu tirei alguns espaços e funcionou , obrigado!
> >
> > Estou tentando agora adcionar mais uma coluna! :-)
> >
> > Fernando
> >
> >
> >
>
> Oi Fernando, vc pode, por favor, me passar o script depois da sua
> alteração?
>
> Pois aqui ainda chega a funcionar por 3s, mas aí aparece esse erro:
>
> -----------------------------------------------
>
> susage: tput [-V] [-S] [-T term] capname
> ./matrix.sh: line 96: lines: command not found
> ./matrix.sh: line 95: RANDOM%: syntax error: operand expected (error
> token
> is "%")
>
> -----------------------------------------------
>
> Tenho um outro aqui que achei há muito tempo em um site, mas ele é um
> pouco
> diferente:
>
> -------------------------------------------------
>
> #!/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)))
> tput cup $lin $COL; echo -en "$COR$Char";sleep 0.01
> let lin++
> done
> done
>
> ------------------------------------------------------
>
> Té mais.
>
> Abraço.
>
> --
> Filipe Batista (Lipse) <> GNU/Linux User Number: 359785
> ICQ: 268859027 <> Jabber ID: address@hidden
> http://lipse.blogspot.com/
>
>
> [As partes desta mensagem que não continham texto foram removidas]
>
>
--
Esta mensagem foi verificada pelo sistema de antiv�rus e
acredita-se estar livre de perigo.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [shell-script] script Matrix - colaborativo,
Danyllo Carvalho <=