Created
October 29, 2021 00:14
-
-
Save roblogic/b8926694e9c6487ac1e50243be0e3029 to your computer and use it in GitHub Desktop.
fill the terminal with random coloured blocks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
P=(' ' █ ░ ▒ ▓) | |
while :;do | |
printf "\e[9$(( ( RANDOM % 7 ) + 1 ))m\e[$[RANDOM%$LINES+1];$[RANDOM%$COLUMNS+1]f${P[$RANDOM%5]}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
similar to this : https://codegolf.stackexchange.com/a/158142