Why using Cygwin on Windows instead of the built-in command shell? There is one major reason: Cygwin supports colored output via ansi escape sequences. Note, that these steps differ depending on the Cygwin version, installed packages and configuration.
Get rid of the cygdrive prefix
Get rid of the Cygwin ruby
Add tty to CYGWIN option
Switch to raw mode
The ctrl-c handler in Cygwin only works for programs compiled with the correct Cygwin libs. This does not apply to most ruby installations. Hitting ctrl-c may interrupt the compiler, but bake does not get this signal.
You can set the Cygwin console to raw mode:
stty raw
Now bake can read ctrl-c as raw character on stdin. Bake will abort after all subprocesses - like the running compilation steps - have returned.
Start the build
Use the parameter “-a black” or “-a white” depending on the background color of your shell. Depending on your Cygwin installation, you have to call “bake.bat” instead of “bake”. To avoid this, create an alias, e.g:
alias bake=/c/Programme/_dev/Ruby192/bin/bake.bat