clear - clear the screen
Look in the termcap database, find the character to clear the screen, and emit it.
This is a direct lift from Section 15.7, Ringing the Terminal Bell, from Perl Cookbook, with
cl substituted for
Jeffrey S. Haemer
clear should probably take an argument, like yes, that will let users send arbitrary termcap sequences, with
cl as the default.