Skip to content

Instantly share code, notes, and snippets.

@roblogic
Created October 29, 2021 00:14
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 roblogic/b8926694e9c6487ac1e50243be0e3029 to your computer and use it in GitHub Desktop.
Save roblogic/b8926694e9c6487ac1e50243be0e3029 to your computer and use it in GitHub Desktop.
fill the terminal with random coloured blocks
#!/bin/zsh
P=(' ' █ ░ ▒ ▓)
while :;do
printf "\e[9$(( ( RANDOM % 7 ) + 1 ))m\e[$[RANDOM%$LINES+1];$[RANDOM%$COLUMNS+1]f${P[$RANDOM%5]}"
done
@roblogic
Copy link
Author

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