ref: 6c5f25a2fd0da669d735d457d0e7c04d2dc2efcc
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