Hi Kyle! On Fri, 30 Oct 2009, Kyle Wheeler wrote:
> On Monday, October 26 at 01:56 PM, quoth Horacio Sanson: > >I tried using pygmentize that in console colors the diff files > >correctly but when used from within mutt the text is displayed > >correctly but not colored. > > Add this to your muttrc: > > set allow_ansi > > Normally, mutt doesn't let inline viewer programs generate colors. I > believe the rationale is that to do so would give them too much power > to fool the user (e.g. to fake a PGP-successfully-decoded header or > something). But, if you set the $allow_ansi variable, mutt will > preserve the colors. I'm sure it's got a lot more to do with all the other stuff you can do with ANSI besides colorize, like position the cursor and write text anywhere on the screen. You can pull off a lot more than just fake a PGP header; you can basically rewrite the entire screen with a little work.