Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I... did not know that! Yep yep that should do the trick for me. Thanks a lot, actually!



Most tools that do formatted output, if they’re well-behaved, should try to detect if their output is a pipe and if so, disable formatting.

Some examples that I can think of off the top of my head (in addition to git) are ripgrep and jq, both of which do the right thing and strip formatting.


rather they should detect that output is a terminal and enable the coloring




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: