4 ms·
This script inserts terminal escape sequences into text. I understand that part. But there's a screenshot where a "ping" is being done at a normal looking term
by petercooper 15y ago
This script inserts terminal escape sequences into text.
I understand that part. But there's a screenshot where a "ping" is being done at a normal looking terminal and it just works without being explicitly piped through a program that does the above. What's the mechanism for piping all the terminal output through another process?
- netherland 15y agoThose are supplied if you source the aliases that ship with the Homebrew formula: https://github.com/mxcl/homebrew/blob/7bbe7e9311ce95a141bf5f77ca7fa02d43387748/Library/Formula/grc.rb#L25 https://github.com/mxcl/homebrew/blob/7bbe7e9311ce95a141bf5f...
- moonboots 15y agoThe initial grc command aliases commands like 'ping' to a modified command that processes the output[1]. [1] https://github.com/mxcl/homebrew/blob/7bbe7e9311ce95a141bf5f77ca7fa02d43387748/Library/Formula/grc.rb#L25 https://github.com/mxcl/homebrew/blob/7bbe7e9311ce95a141bf5f...
- petercooper 15y agoAhh, aliases. Thanks :-) Makes sense. I was probably dreaming of a world where it'd pick up an IP address by regex in any terminal output.