- 
            
      
        
      
    Star
      
          
          (243)
      
  
You must be signed in to star a gist  - 
              
      
        
      
    Fork
      
          
          (55)
      
  
You must be signed in to fork a gist  
- 
      
 - 
        
Save khakimov/3558086 to your computer and use it in GitHub Desktop.  
| echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' | 
I love this
Cool command! I'd like to change the characters printed to terminal, but any change I make to the string in 'letters' returns the error "awk: illegal statement at source line 1 - 5 missing ]'s". Anyone know what all I need to change for that?
This is sweet. Thanks! I've created an updated version that clears columns from above and exits and clears the screen upon a key press: https://gist.github.com/dhaiducek/174cdb04a5a51f016c6ca69ece721b17
(I changed it to show only zeros and ones since I couldn't get it to change to a foreign alphabet without changing my system settings.)
<3
Your in the Matrix https://www.youtube.com/watch?v=N6p5q4f-sqI
How to put custom text in this?
Nice! Thank you.
Really cool! Love it
real good computer heater
+1
That's crazy man!
Love it its awesome
Thanks, @khakimov. Just in time for #TheMatrix4 #TheMatrixResurrections .
https://www.instagram.com/p/CTCXoCbJvJ4/?utm_source=ig_web_copy_link
memory killer...
better use this https://sharadchhetri.com/ubuntu-linux-get-matrix-effect-terminal/
or on macOS -> brew install cmatrix
Made fork which erases the columns when its full.
https://github.com/jaagut123/bash_matrix
#!/bin/env sh
lines=$(tput lines)
cols=$(tput cols)
awkscript='
  {
    letters="ァアィイゥウェエォオカガキギクグケゲコゴサコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶヷヸヹヺ・ーヽヾabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"
    lines=$1
    random_col=$3
    c=$4
    letter=substr(letters,c,1)
    cols[random_col]=0;
    for (col in cols) {
      line=cols[col];
      cols[col]=cols[col]+1;
      printf "\033[%s;%sH\033[2;32m%s", line, col, letter;
      printf "\033[%s;%sH\033[1;37m%s\033[0;0H", cols[col], col, letter;
      if (cols[col] >= lines) {
        cols[col]=0;
      }
    }
  }
'
echo -e "\e[1;40m"
clear
while :; do
  echo $lines $cols $(( $RANDOM % $cols)) $(( $RANDOM % 72 ))
  sleep 0.05
done | awk "$awkscript"
    Here's a cross platform powershell script that runs in iTerm / WindowsTerminal or a basic ASCII terminal as well! (Progressive in unix mode, and basic in windows mode)
https://github.com/avdaredevil/matrix/?tab=readme-ov-file#demo
Hope it brings a smile to y'all's faces :)
Nifty 👍