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

Users with Emoji in their name breaks UI #29

Open
dragos240 opened this issue Nov 20, 2018 · 3 comments
Open

Users with Emoji in their name breaks UI #29

dragos240 opened this issue Nov 20, 2018 · 3 comments

Comments

@dragos240
Copy link

I just started up TelegramTUI and noticed that users with emoji in their names will offset the borders in the user window and spill out into the main chat window.

Example:
Example

I've had a similar problem with another application I've helped develop. The problem there was that unicode emoji are multibyte characters, leading the drawing routines to miscalculate borders. To fix this, I switched to a curses based interface which uses windows. The worst case scenario in that case would be that the text would wrap around to the next line. So I suggest switching to curses and accounting for multibyte characters.

@vtr0n
Copy link
Owner

vtr0n commented Nov 21, 2018

Thanks fo report!
Try to fix it a little bit later

@LordManhattan
Copy link

@dragos240 what are you using to show emojis in CLI? I'm "shopping" around a little atm to find one that fits me best, but I'm curious to what you're using.

Cheers

@dragos240
Copy link
Author

I'm using Teriminator with Noto-Emoji font.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants