4 ms·
Crazy idea - what if other utilites were aware of ANSI codes and behaved appropriately? For example 'grep' could ignore color sequences when doing pattern-match
by racer-v 9y ago
Crazy idea - what if other utilites were aware of ANSI codes and behaved appropriately? For example 'grep' could ignore color sequences when doing pattern-matching, and then re-apply the colors to the output. Then you could do something like `git log | grep` and see the original coloration in the output.
- dragonwriter 9y ago> Crazy idea - what if other utilites were aware of ANSI codes and behaved appropriately? If ANSI sequences were only color, they might be feasible; getting a clear idea on what “appropriately” means for general ANSI content in a text stream is... difficult.
- racer-v 9y agoI'd be happy with just the Graphic parameters https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_G...