Hi Eric, On Mon, Sep 30, 2013 at 11:38:26PM +0200, Eric Leblond wrote: > When output is not a tty (pipe or redirect to a file), the color > display is causing the output to be unreadable: > 02 00 00 00 | | extra header | > |ESC[1;31m00008ESC[0m|ESC[1;32m--ESC[0m|ESC[1;34m00001ESC[0m| |len |flags| type| > This patch tests if the output is a terminal and only add color in > this case. It also displays space instead of char 0 if a letter is > not existing. In both cases, you can use less -r to interpret the colors, is that enough to address what you're noticing? The chunk to replace char 0 by 32 looks fine to me. Let me know. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html