On linux machines I used to type reset
on terminal.
It was like, closing and reopening the terminal! It is very convenient, because in debugging you wont mix error messages from previous executions.
The command does exists on OSX, however when i scroll up, the previous output is there too!
/usr/bin/reset
in Lion.