On Sun, Dec 23, 2007, Thomas Dickey wrote: > At the moment, I can't think of anything except the less-elegant solution > of inserting newlines into the text to make it wrap as expected. (It's > less elegant since redirecting the text to a file will have the newlines, > and also because then grep would have to know the terminal width).
I think grep checks whether its output file descriptor is a tty to enable escape sequences. I'll reassign to grep and suggest this; thanks! -- Loïc Minier