uptop
uptop copied to clipboard
Emoji rendering
Rendering emoji breaks assumptions about string length. Emoji appears to take up two columns. Not sure if it is a safe assumption that all emoji are double-width characters.
This issue got me thinking, and asking questions on IRC, and it looks like the wcwidth package might be useful to start a fix, but this really feels like something the vty or brick package would need to do instead of your app. I guess you could remove the emojis from account names but it just feels wrong to do that with Up :)
Also the text-icu package has some support for breaking text into glyphs: https://hackage.haskell.org/package/text-icu-0.8.0.4/docs/Data-Text-ICU-Break.html