summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-10-10 15:36:27 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-10-11 13:39:16 +1100
commitbd680d45a86f7c2c06f7f619394e1fedcf20ca99 (patch)
treee63301b2d02427f4255d8572a9dfb5ae71c7d7a8 /Makefile.am
parentf1e6b8daf970463b32eff33da75e14b3122a43a4 (diff)
downloadtalos-petitboot-bd680d45a86f7c2c06f7f619394e1fedcf20ca99.tar.gz
talos-petitboot-bd680d45a86f7c2c06f7f619394e1fedcf20ca99.zip
ui/ncurses: Display multibyte strings correctly in textscreens
In nc-textscreen each line of text is capped at a certain length to avoid running off the side of the viewable screen. However it appears the ncurses function mvwaddnstr() counts by byte instead of actual character, causing strings which contain multibyte characters to be cut short. To avoid this check the displayed length of each string against the screen width, and if under instruct mvwaddnstr() to print the whole string. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com> (cherry picked from commit eac7fc04e7ce07f6b1a6a0d19af86ae7f74ebc5e)
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud