Hacker News new | ask | show | jobs
by JdeBP 2262 days ago
It very much is documented.

    Get-Help about_Redirection
Received wisdom about Write-Host, by the way, is that one rarely wants it.
1 comments

> Received wisdom about Write-Host, by the way, is that one rarely wants it.

Yeah, totally got that. But how else you can generate colorized easy-to-read output, where yellow warnings stand out?

There should be something like Write-Host that outputs colors to console stdout handle and silently drops color properties when writing to (anonymous) pipe stdout handle.

Color escape codes could be even better.