Using "viu" to display attached images

2022-06-19 Thread Andy Spiegl
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

Now mutt calls viu for all attached images.
But only a black rectangle is shown instead of the image.

Do you have any idea why this happens?
I compared the env variables inside a mutt shell but found no relevant
differences.  TERM is still set to "xterm".  And if I start a subshell from
within mutt and then call viu, the image is displayed nicely.  I'm a bit 
clueless...

Thanks for any hint,
 Andy

-- 
 If your parents never had children, chances are you won't, either.
   (Dick Cavett)


Re: Two questions regarding header display

2022-06-19 Thread Cameron Simpson
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 personal terminfo record without the color capabilities; 
  decompile the provided terminfo with untic, edit to remove the colours 
  (or change the colours to "mono" escape sequences, build new entry 
  with tic, set $TERMINFO to refer to it
- run mutt itself from a script or alias which sets $TERM just for mutt 
  i.e. overriding the $TERM provided by screen (which will be describing 
  the terminal capabilities of screen itself)
- switch from screen to tmux

Cheers,
Cameron Simpson