Terminal clear function

I would like to have a terminal clear function to reset all data within the terminal window

Have you tried this…