Re:Grc - it's like stylesheets for your terminal
by petercooper on Wednesday April 18, 2012 @02:46PM
(#3859579)
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?
Re:Grc - it's like stylesheets for your terminal
by moonboots on Wednesday April 18, 2012 @03:00PM
(#3859645)
The initial grc command aliases commands like 'ping' to a modified command that processes the output[1].
[1] https://github.com/mxcl/homebrew/blob/7bbe7e9311ce95a141bf5f...
Re:Grc - it's like stylesheets for your terminal
by petercooper on Wednesday April 18, 2012 @03:46PM
(#3859863)
Ahh, 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.
Re:Grc - it's like stylesheets for your terminal
by netherland on Wednesday April 18, 2012 @02:58PM
(#3859636)
Those are supplied if you source the aliases that ship with the Homebrew formula: https://github.com/mxcl/homebrew/blob/7bbe7e9311ce95a141bf5f...
Ascii.io transforms these terminal escape sequences into html/css, so Grc should work fine with it.