ref: 4b95f4f4f1f3caae8e09e16f9bcd4af303a33a8b
dir: /clear/
#!/bin/rc
# clears all the output from programs,
# leaving only the command prompts
grep `{echo -n '^'^$prompt(1)} </dev/text | \
grep -v '^'^$prompt(1)^'(clear|"")' | \
uniq >/tmp/clearing.$pid
cp /tmp/clearing.$pid /dev/text
rm -f /tmp/clearing.$pid