[mc] Notifying about errors from user menu items?

skejg grolleman at zoho.com
Mon Aug 26 05:30:40 UTC 2024


On Sat Aug 24, 2024 at 17:23 -0500, Guy Stalnaker <jimmyg521 at gmail.com> wrote:

> Hello - I was intrigued by your post to the list, so I did some
> experimenting about ways to get output from a command into a notification
> dialog such as you show.

Thanks for the email, Guy!

I was also thinking about it and came to the same conclusions as you: it's
possible with the help of an intermediate file. I just decided that for
me personally it's not exactly worth the pain: in a case of an error
I will <C-o> anyway, so I'll see the message there :)

But, yeah, it was quite fun to play with streams, so thanks again for
your letter, it certainly may be interesting for others.

> I don't know if there is a Midnight-Commander way to pass command error
> output into MC

Probably, not. But it would be nice to have something like `mcdialog`,
similar to `mcview` or `mcedit`, so that we could run it like:

    mcdialog --alert 'ERROR' 'Patch does not apply'

...to get notified "the MC way" and to avoid all that flickering :)





-- 
skejg



More information about the mc mailing list