Skip to content

Instantly share code, notes, and snippets.

@sorz
Created March 10, 2018 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sorz/c501341a1b134fbc22a712e8132ce00f to your computer and use it in GitHub Desktop.
Save sorz/c501341a1b134fbc22a712e8132ce00f to your computer and use it in GitHub Desktop.
Copy from http://bruxy.regnet.cz/web/linux/EN/matrix-sh/, just change random chars to 啊.
#!/bin/bash
echo -e "\033[2J\033[?25l"; R=`tput lines` C=`tput cols`;: $[R--] ; while true
do ( e=echo\ -e s=sleep j=$[RANDOM%C] d=$[RANDOM%R];for i in `eval $e {1..$R}`;
do c=`printf '啊'` # fork from http://bruxy.regnet.cz/web/linux/EN/matrix-sh/ #
$e "\033[$[i-1];${j}H\033[32m$c\033[$i;${j}H\033[37m"$c; $s 0.1;if [ $i -ge $d ]
then $e "\033[$[i-d];${j}H ";fi;done;for i in `eval $e {$[i-d]..$R}`; #[mat!rix]
do echo -e "\033[$i;${j}f ";$s 0.1;done)& sleep 0.05;done #(c) 2011 -- [ BruXy ]
@ywh233
Copy link

ywh233 commented Mar 10, 2018

啊啊啊啊啊啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment