shithub: snippets

ref: f6dbc2ae6e153c5608b6f9d893238d71ae521935

View raw version
#!/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