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?
Click Ctrl-L . It should clear everything without losing the .
When using the bash shell, you can also clear the screen by pressing Ctrl + L .
A common way to do that is to use the `clear` command, or its keyboard shortcut CTRL+L.
Or you could try ctrl-L :)
That should work in most emulated terminals as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With