* Patrice Levesque <mutt.wa...@ptaff.ca> [2013-01-20 16:33]:
I'm happily using gentoo's mutt-1.5.21 with a 256-color terminal,
mostly under tmux.  My mutt colorscheme uses 256 colors and they are
showed perfectly.

I'd like to display image previews using unicode block characters,
in the mutt pager, using something like img2xterm
[https://github.com/rossy2401/img2xterm#] in conjunction with a
proper mailcap entry.

Outside of mutt, img2xterm displays the image in full 256 colors.
Inside mutt, it seems the escape codes for 256 colors don't get
recognized and blinking block junk gets displayed instead.
allow_ansi is turned on in .muttrc and the ANSI escape codes for
good ol' 16 colors work fine in a similar scenario.

Is there something I can do to make mutt recognize 256 color ANSI
codes inside its pager?

Also, is there a way inside mutt to strip the ANSI codes created by
an autoview-spawned command before relaying the message to an
external editor?

Attached to this mail is a typical 256-color ANSI-code output from
img2xterm.

Thanks,

Is your mutt compiled with ncurses or slang? I experienced that mutt can handle ANSI code better if it's compiled with slang ...

I'm using my own live-ebuild though so I'm not sure how that is handled by the official ebuild. Feel free to ask for my local ebuild if there's any interest ...

Greetz
Stefan

Attachment: pgpS3lNUI45OM.pgp
Description: PGP signature

Reply via email to