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.

26 comments:

  1. Anonymous2:18 AM

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

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

    ReplyDelete
  3. Anonymous3:15 AM

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

    ReplyDelete
  4. Anonymous6:09 AM

    Thanks from me too for C-l

    ReplyDelete
  5. Anonymous6:10 AM

    Thanks from me too for C-l

    ReplyDelete
  6. Anonymous6:16 PM

    ctrl+l worked for me

    ReplyDelete
  7. Anonymous12:26 PM

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

    ReplyDelete
  8. Anonymous8:01 AM

    Ctrl-L works, thanks!

    ReplyDelete
  9. Thank you, Ctrl + l is so good!

    ReplyDelete
  10. Anonymous11:37 AM

    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

    ReplyDelete
  11. ctrl l works great

    ReplyDelete
  12. osaka moraiya11:29 AM

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

    luv from japan

    ReplyDelete
  13. Anonymous12:06 AM

    awesome...c+l

    ReplyDelete
  14. Anonymous3:59 AM

    GOOD thx

    ReplyDelete
  15. Anonymous4:36 PM

    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

    ReplyDelete
  16. Anonymous9:53 PM

    thx for the Ctrl-L

    ReplyDelete
  17. Anonymous11:39 PM

    thanks for ctrl + l

    ReplyDelete
  18. Anonymous2:36 AM

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

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

    ReplyDelete
  20. Anonymous12:50 PM

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

    ReplyDelete
  21. Anonymous9:29 PM

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

    ReplyDelete
  22. Anonymous12:04 PM

    really thanks for Ctrl+L !!

    ReplyDelete
  23. Anonymous4:14 PM

    Thanks a lot. Ctrl +L works for me

    ReplyDelete
  24. Anonymous4:03 PM

    Thank you, saved me a lot of time!

    ReplyDelete
  25. Install ncurses...

    ReplyDelete