]> git.ozlabs.org Git - petitboot/commitdiff
ui/ncurses: Allow text wrapping in select widgets
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Tue, 8 Sep 2015 23:03:52 +0000 (09:03 +1000)
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Thu, 10 Sep 2015 05:49:27 +0000 (15:49 +1000)
Several string translations used in select widgets are longer than the
maximum possible width of the widget. Rather than associating several
FIELDs with a select option, use a fold_text callback to pad out
substrings of the original string such that the ncurses O_WRAP option
properly wraps strings within the field.

Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>

No differences found