print #handle, "!cls"

This command clears the text window of all text.