add support for colorized ngrep
Brought to you by:
jpr5
ngrep is very useful. However, patience is needed to
find the matched pattern from the matched packet,
especially when in hex format. Inspired by 'grep
--color', this patch colorizes the matched pattern for
display. Just
use -C option.
Note: when the colorized result is piped to 'more',
'-f' option should be added for 'more', eg.
ngrep xxx | more -f
The patch is based on the newest CVS version.
patch for ngrep.c,v 1.90 and ngrep.h,v 1.33
Logged In: YES
user_id=50338
Originator: NO
Thanks you for submitting this patch!
I wish I had reviewed it before the latest (recent) release... oh well. I am looking through the patch now and will integrate it into CVS shortly.
Logged In: YES
user_id=50338
Originator: NO
This feature is in CVS now, and will go out in the next release of ngrep.
Closing as ACCEPTED.