20 lines
235 B
Bash
Executable File
20 lines
235 B
Bash
Executable File
#!/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 -ab &
|
|
while true; do sl; done &
|
|
) | lolcat > "$1"
|