dialog --version
Version: 1.3-20250817

The following works as expected:
dialog --hline 12345678901 --msgbox test 0 0

The following drops the hline.  That is, the normal graphic line is
present.  The hline text is one character longer.

dialog --hline 123456789012 --msgbox test 0 0

If I add a --title to the widget, and keep making it longer,
eventually the hline will show up, then make the hline longer and it
disappears again and so on and so forth.  Or changing the "0 0" to "0
-1"

I originally noticed it on a --menu widget, but did not test each one.
Everything else seems to function correctly.  I was just confused why
my message was missing (I was using it as sort of a debug/status
message).

I could not find this mentioned in the man page.  Nor did I find
anything in web searches, though granted I did not search too long
because the terms are pretty generic.

Did I miss something in the docs?  A bug?  Implementation detail?

Actually, I guess that dlg_draw_helpline()'s:
if (limit < avail)

is the culprit.

Maybe a feature request might be to mix that into the auto size
feature.  Or at least document that it is silently dropped if too
wide?

mrc

Reply via email to