Wednesday, February 27, 2008

No "clear" Command in Cygwin Default Installation

My Cygwin installation does nothing when I type "clear", it say it does not know this command or something. It is quite basic operation to be unavailable. Oh well, that's just life, nothing that a little googling couldn't help.

This blog's post clears up things for me : I need to install ncurses package. It is fixed now but I still think it should be available by default though.

27 comments:

Anonymous said...

It's included in the ncurses package.
Or, if you're using bash, you can press ctrl+L.

Richyroo said...

thanks for the ctrl+l that had bugged me for ages :)

Anonymous said...

Thanks from me as well. Ctrl-L does the trick!!

Anonymous said...

Thanks from me too for C-l

Anonymous said...

Thanks from me too for C-l

Anonymous said...

ctrl+l worked for me

Anonymous said...

alias cls='echo -e -n "\E[2J" also works native.

Anonymous said...

Ctrl-L works, thanks!

Unknown said...

Thank you, Ctrl + l is so good!

Kevin From The People's Republic of Davis. said...

I agree with Anonymous...

the alias is added to my bag of tricks. Thanks!

Anonymous said...

CTRL+L only works if you use the emacs command line editor (not vi).

above alias only works for vt* term types

for any term type use:
alias cls='tput clear ; tput cup 0 0'

utils->ncurses supplies the official clear program

cygwin said...

ctrl l works great

Debugger said...

ctrl+L works

osaka moraiya said...

thanks for CTRL-L!!!!!!!!!!!!!!

luv from japan

Anonymous said...

awesome...c+l

Anonymous said...

GOOD thx

Anonymous said...

Haha wow I was just thinking about how to do the Ctrl+L since at school we are learning on terminal, and thats Macs, Thanks

Anonymous said...

thx for the Ctrl-L

Anonymous said...

thanks for ctrl + l

Anonymous said...

Hi,
Thanks for the CTRL+L buddy :-)

Wheat said...

Thanks to the Anonymous poster for the tip on where to find clear as well as for the keyboard shortcut.

Anonymous said...

Thanks for Ctrl+L. It helps me a lot!

Anonymous said...

i made a little program to emulate clear.. just compile it
http://code.google.com/p/clear-for-cygwin/

Anonymous said...

really thanks for Ctrl+L !!

Anonymous said...

Thanks a lot. Ctrl +L works for me

Anonymous said...

Thank you, saved me a lot of time!

Junior said...

Install ncurses...