Skip to content

Instantly share code, notes, and snippets.

@nolim1t
Created December 28, 2021 13:54
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 nolim1t/e55b042aaf455af27367804ce1a94a7d to your computer and use it in GitHub Desktop.
Save nolim1t/e55b042aaf455af27367804ce1a94a7d to your computer and use it in GitHub Desktop.
Matrix
while :;do echo $LINES $COLUMNS $(($RANDOM%$COLUMNS)) $(perl -CO -E "say chr $(($RANDOM%99+180))");sleep .02;done|gawk '{a[$3]=0;for(x in a){o=a[x];a[x]++;printf "\033[%s;%sH\033[2;32m%s",o,x,$4;printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,$4;if(a[x]>$1)a[x]=0;}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment