The less command does not receive the color control chars because it is not a terminal. Not sure if you can pipe output into a text buffer while preserving those.