#!/bin/sh # molentje - display a turning windmill, full screen # # a windmill is drawn by displaying - \ | / repeatedly # # by Joost van Baal-Ilić, 2024 # this code is in the public domain, no copyright is claimed # # Needs 'sm' : http://github.com/nomeata/screen-message by Joachim Breitner # Press control-q to quit (or esc-esc) slaap='sleep 1' slaap='sleep 0.15' slaap='sleep 0.2' # % find /usr/share/fonts/truetype -type f | grep -i mono font='-n LiberationMono-Regular' font='-n Freemono' font='-n VeraMono' font='' while $slaap do printf -- '--\f' $slaap printf '\\\f' $slaap printf '|\f' $slaap printf '/\f' done | sm -i $font -