#!/bin/bash

usage() {
    echo "Usage: $0 /dev/pts/{tty_nb}"
    exit 0
}

if [ -z "$1" ]; then
    set "$(tty)"
elif ! [ -w "$1" ]; then
    usage
fi

(set -e

asciiquarium &
cmatrix -abo &
while true; do sl; done &
) | lolcat > "$1"
