better win32 textcolor support
better win32 textcolor support

 - only attempt win32 console API on a real win32 console
 - always attempt ANSI codes on a pipe
 - disable colors in any other case (e.g. redirect to file)

Zirias/pocas,Zirias/pocas,Zirias/pocas