Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cygwin clearscreen from bash

Tags:

bash

cygwin

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?

like image 479
ManInMoon Avatar asked Mar 24 '13 12:03

ManInMoon


People also ask

How do you clear the screen in Cygwin?

Click Ctrl-L . It should clear everything without losing the .

How do I clear the screen in bash?

When using the bash shell, you can also clear the screen by pressing Ctrl + L .

How do I clear the terminal screen?

A common way to do that is to use the `clear` command, or its keyboard shortcut CTRL+L.


1 Answers

Or you could try ctrl-L :)

That should work in most emulated terminals as well.

like image 157
gNU.be Avatar answered Sep 21 '22 16:09

gNU.be