[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ncurses/Forms: Alignment for dynamic Fields

From: Thomas Dickey
Subject: Re: Ncurses/Forms: Alignment for dynamic Fields
Date: Sat, 19 Jul 2014 15:03:59 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Fri, Jul 18, 2014 at 01:35:50PM +0200, Leon Winter wrote:
> Hi,
> > There wasn't a demo/testcase to go with the patch, and though I made
> > a note about it, was very busy at the time, and did not follow up.
> I made a testcase to show the change [0]. We have two fields, one of
> each type (static/dynamic). Both fields are not focussed (which is
> required for justification to be in effect), yet only the static field
> is actually rendered with alignment/justification. After applying my
> patch both fields would be rendered exactly the same.
> In my opinion they should be. A dynamic field limited in length by
> set_max_field should behave like a static field with a static length
> limit. This allows for more flexibility when a use case demands such a
> switch (of input size limits).

That sounds reasonable: but it makes the behavior different from other 
(looking at Solaris and NetBSD).

We could add an extension, e.g., a new option value not conflicting with other 

(by the way, I got a core-dump with your change in test/demo_forms.c - but will 
on investigating that pending discussion of a suggested extension).

Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]