uptop icon indicating copy to clipboard operation
uptop copied to clipboard

Emoji rendering

Open ldgrp opened this issue 5 years ago • 2 comments

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.

ldgrp avatar Oct 11 '20 11:10 ldgrp

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 :)

axman6 avatar Jan 08 '24 09:01 axman6

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

axman6 avatar Jan 08 '24 09:01 axman6