Re: [S-mailx] viewing images

2022-09-17 Thread Steffen Nurpmeso
rb...@alumni.caltech.edu wrote in
 <202209171328.28hdsdrq020...@randytool.net>:
 | 'image/jpg; fbi -e -noverbose --autodown  %s; needsterminal'
 | This works - thanks.

Good to hear!
Good..

Ciao from Germany,

--steffen
|
|Der Kragenbaer,The moon bear,
|der holt sich munter   he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


Re: [S-mailx] viewing images

2022-09-17 Thread rbell
'image/jpg; fbi -e -noverbose --autodown  %s; needsterminal'
This works - thanks.

russell bell


Re: [S-mailx] viewing images

2022-09-16 Thread Steffen Nurpmeso
Hello Mr. Bell.

rb...@alumni.caltech.edu wrote in
 <202209161411.28gebpax014...@randytool.net>:
 | I try to view images in s-mailx with fbi.  The .mailcap entry:
 |
 | image/jpg; fbi -e -noverbose --autodown  %s
 |
 |It pops the images up momentarily, too quickly to see, and fbi
 |reports:
 |
 | ioctl VT_GETMODE: Inappropriate ioctl for device
 | NOTICE: No vt switching available on terminal.
 | NOTICE: Not started from linux console?  CONFIG_VT=n?
 |
 |lynx uses the same .mailcap and works.  What's up with s-mailx?

Hm, lynx uses the ncurses library to drive the terminal i think,
whereas we drive it on our own, mostly.  You could try

  image/jpg; fbi -e -noverbose --autodown  %s; needsterminal

which maybe helps?

   This flag field indicates that the given shell command must be
   run on an interactive terminal.  S-nail will temporarily re-
   lease the terminal to the given command in interactive mode, in
   non‐interactive mode this entry will be entirely ignored; this
   flag implies x-mailx-noquote.

Framebuffer console!  I really loved it twenty years ago, when it
"suddenly was there" after installing a new Linux distro which
came with it!  Now that made me look, "by then" there was
a library noted in i think the Linux Magazin (Germany), and now
searching for it yes it was DirectFB, and that lead me to
DirectFB2 on github, and that reads: "2021-12-06 Revival of
DirectFB" !!  Hey!  Back in that day, i shortly dreamed of such an
environment!  Today i will not work without a graphical browser
here.  hm.

That reminded me that dire 13 months ago we had this with another
program, and i then also (beside needsterminal) said

  I also have CONFIG_VT_CONSOLE=y.

  P.S.: i was coming over
https://git.kraxel.org/cgit/fbida/tree/fbpdf.c#n324
  and
https://git.kraxel.org/cgit/fbida/tree/vt.c#n84
  in case that helps.

  Try adding VT_CONSOLE.

Did it help?  Hm.  Try "needsterminal".

Does this help?

--steffen
|
|Der Kragenbaer,The moon bear,
|der holt sich munter   he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)