Best way to use a shell with Cygwin in Windows 7

The core of Babun consists of a pre-configured Cygwin. Cygwin is a
great tool, but there’s a lot of quirks and tricks that makes you lose
a lot of time to make it actually ‘usable’. Not only does babun solve
most of these problems, but also contains a lot of vital packages, so
that you can be productive from the very first minute.

How does clear command work?

I was recently trying to learn more about how the shell works and was looking at how the clear command works. The executable is located in /usr/bin/clear and it seems to print out a bunch of blank lines (equal to the height of the terminal) and puts the cursor at the top-left of the terminal.