path: root/lib/fold
Commit message (Collapse)AuthorAgeFilesLines
* lib/fold: Add support for multibyte stringsJeremy Kerr2014-09-231-11/+59
| | | | | | | | | | Currently, the fold_text function doesn't understand multibyte strings, so may break a line in the middle of a multibyte sequence. This change adds multibyte-awareness to the fold code, and uses proper width calculations for the contents of the folded string. Signed-off-by: Jeremy Kerr <>
* lib/fold: Add text fold utilityJeremy Kerr2014-01-312-0/+71
We want to fold help text into the ncurses UI, so add a little module to split text into lines. Signed-off-by: Jeremy Kerr <>
OpenPOWER on IntegriCloud