cygwin clearscreen from bash

ManInMoon picture ManInMoon · Mar 24, 2013 · Viewed 47k times · Source

I want to clearscreen from bash in a cygwin terminal. I have tried

cmd /c cls
echo -e "^V^L"
echo -e "\014"

None of these work - they all give a "linefeed". Pressing CTRL+L does work - but I want to call it from a Bash script.

Any ideas?

Answer

gNU.be picture gNU.be · Mar 24, 2013

Or you could try ctrl-L :)

That should work in most emulated terminals as well.