Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emoji rendering #1

Open
ldgrp opened this issue Oct 11, 2020 · 2 comments
Open

Emoji rendering #1

ldgrp opened this issue Oct 11, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@ldgrp
Copy link
Owner

ldgrp commented Oct 11, 2020

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 ldgrp added the bug Something isn't working label Oct 11, 2020
@axman6
Copy link

axman6 commented Jan 8, 2024

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
Copy link

axman6 commented Jan 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants