Source this script in Bash to make unformatted output of commands appear on screen slowly, accompanied by beeping galore.
source moviefy.sh
or . moviefy.sh
. Every command executed after that will be moviefied. There is no way to turn it off again. (Just exit.) Please note that formatted output may be mangled or it may crash the script. Curses stuff won't work.
#!/bin/bash
export LC_ALL=C
exec > >\
(while IFS= read -d '' -r line; do
if [[ -n $line ]]; then
echo
for (( i=0; i<${#line}; i++ )); do
char="${line:$i:1}"
printf '%c' "$char"
case $char in
[" "]) sleep 0.04
;;
[$'\t']) sleep 0.08
;;
[$'\v']) sleep 0.7
;;
[$'\n'$'\r'$'\f']) sleep 0.25
;;
*) beep -f $(shuf -i 3000-3200 -n 1) -l 5
sleep 0.015
;;
esac
done
printf "${PS1@P}"
printf ""
fi
done)
PROMPT_COMMAND='printf "\0"'