News for hackers. Stuff that matters.
Re:A terminal-based presentation tool with colors and effects by TedDoesntTalk on Sunday August 30, 2020 @03:11PM (#24325115)
How did you do the matrix raining code in the demo? I did not see it in the examples. I use an mp4 of that as a screen saver but would love it in terminal instead!
Re:A terminal-based presentation tool with colors and effects by m3at on Sunday August 30, 2020 @09:05PM (#24327512)
Here is how to do it with a few lines of bash:

  function matrix () {
      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; } }
      }'
  }
Re:A terminal-based presentation tool with colors and effects by vortex_ape on Sunday August 30, 2020 @03:16PM (#24325150)
You can use the matrix effect by adding `<!-- effect=matrix -->` to the top of your slide! :)

These effects are supported right now: fireworks, explosions, stars, matrix, plasma. I plan to add more asciimatics effects soon!

Re:A terminal-based presentation tool with colors and effects by ksaj on Sunday August 30, 2020 @04:16PM (#24325579)
I'm hoping for <-- effect=gol --> for a Game of Life simulation. For whatever reason, it comes up in my talks often. It seems I exude geekness acme whenever I talk about hacking and self-propagating code.
Re:A terminal-based presentation tool with colors and effects by vortex_ape on Sunday August 30, 2020 @04:36PM (#24325728)
That would be awesome! I'll work on it and add it some time! Opened https://github.com/vinayak-mehta/present/issues/45 to track it :D
Re:A terminal-based presentation tool with colors and effects by vicnicius on Sunday August 30, 2020 @03:25PM (#24325217)
Re:A terminal-based presentation tool with colors and effects by Macuyiko on Sunday August 30, 2020 @03:35PM (#24325288)
Relies on the asciimatics Matrix effect, looks like: https://github.com/peterbrittain/asciimatics/blob/master/asc...
Re:A terminal-based presentation tool with colors and effects by vortex_ape on Sunday August 30, 2020 @04:45PM (#24325797)
Yes! `present` is built on asciimatics.