Re: Using "viu" to display attached images

2022-06-20 Thread Oleg A. Mamontov
Hello, On Mon, Jun 20, 2022 at 12:19:13AM +0200, Andy Spiegl wrote: Hi, recently I discovered the command line program "viu" (https://github.com/atanunq/viu) which very nicely displays images in terminal windows. I added this line to my .mailcap: image/*; viu -t -n %s ; copiousoutput

Re: Using "viu" to display attached images

2022-06-20 Thread Andy Spiegl
Hi Oleg, thanks for your reply. > Below works for me (displays image until pressing any key): > > image/*; viu -t %s && read -n 1 Doesn't work for me. :-( Actually, it's not ALL black but mixed black and white blocks. If I maximize the size of the xterm I can vaguely recognize the image.

Re: Two questions regarding header display

2022-06-20 Thread Patrick Shanahan
* Bastian [06-20-22 08:33]: > I did not follow the entire thread, sorry for potential double post. > On 20Jun22 08:15+1000, Cameron Simpson wrote: > > On 07Jun2022 09:56, raf wrote: > > >And I'm not sure I can do anything about it. > > There are many things you can do. I see you've already

Re: Two questions regarding header display

2022-06-20 Thread raf via Mutt-users
On Mon, Jun 20, 2022 at 08:15:13AM +1000, Cameron Simpson wrote: > On 07Jun2022 09:56, raf wrote: > >And I'm not sure I can do anything about it. > > There are many things you can do. I see you've already shifted to just > using "bold" etc in your color directives, but also: > - run a

Re: Using "viu" to display attached images

2022-06-20 Thread Kevin J. McCarthy
On Mon, Jun 20, 2022 at 01:20:16PM -0400, Rob Pyott wrote: Hi, is there a way to get viu running without a .mailcap file? (I have a basic rc file.). Thanks! Rob No, mailcap (and mime.types) is the way to configure attachment handling in Mutt. There's a whole chapter in the manual about this,

Re: Using "viu" to display attached images

2022-06-20 Thread Andy Spiegl
Kevin, > The copiousoutput flag could be making a difference here. That will cause > Mutt to render the output of the command internally, which by default will > strip all ansi output. Even if I set "allow_ansi"? > If you really want to view it inside Mutt's pager, you could set > $allow_ansi.

Re: Using "viu" to display attached images

2022-06-20 Thread Kevin J. McCarthy
On Mon, Jun 20, 2022 at 11:15:50AM -0700, Kevin J. McCarthy wrote: However, if this also happens with a regular mailcap invocation (using and an entry without the copiousflag setting), then something else may be going on. Re-reading the thread, I just noticed you have TERM set to xterm. Try

Re: Using "viu" to display attached images

2022-06-20 Thread Kevin J. McCarthy
On Mon, Jun 20, 2022 at 12:19:13AM +0200, Andy Spiegl wrote: Hi, recently I discovered the command line program "viu" (https://github.com/atanunq/viu) which very nicely displays images in terminal windows. I added this line to my .mailcap: image/*; viu -t -n %s ; copiousoutput The

Re: Using "viu" to display attached images

2022-06-20 Thread Cameron Simpson
On 20Jun2022 11:15, Kevin J. McCarthy wrote: >With $allow_ansi, Mutt will interpret ansi sequences _it understands_ >and convert them to curses calls. I don't currently have viu available >to play with, but perhaps it's emitting sequences Mutt doesn't >understand. How hard is it to extend

Re: Using "viu" to display attached images

2022-06-20 Thread Rob Pyott
Hi, is there a way to get viu running without a .mailcap file? (I have a basic rc file.). Thanks! Rob On Mon, Jun 20, 2022, 1:02 PM Kevin J. McCarthy wrote: > On Mon, Jun 20, 2022 at 12:19:13AM +0200, Andy Spiegl wrote: > >Hi, > > > >recently I discovered the command line program "viu" ( >

Re: Using "viu" to display attached images

2022-06-20 Thread Kevin J. McCarthy
On Mon, Jun 20, 2022 at 07:40:17PM +0200, Andy Spiegl wrote: The copiousoutput flag could be making a difference here. That will cause Mutt to render the output of the command internally, which by default will strip all ansi output. Even if I set "allow_ansi"? With $allow_ansi, Mutt will

Re: Using "viu" to display attached images

2022-06-20 Thread Kevin J. McCarthy
On Tue, Jun 21, 2022 at 08:47:31AM +1000, Cameron Simpson wrote: On 20Jun2022 11:15, Kevin J. McCarthy wrote: With $allow_ansi, Mutt will interpret ansi sequences _it understands_ and convert them to curses calls. I don't currently have viu available to play with, but perhaps it's emitting