matterhorn-chat / matterhorn

A feature-rich Unix terminal client for the Mattermost chat system
BSD 3-Clause "New" or "Revised" License
1.04k stars 76 forks source link

Small graphical glitsches with emojis #785

Closed chrnin closed 1 year ago

chrnin commented 1 year ago

Hi,

I spotted 2 small glitsches when using emojis.

channel names

some people use emojis in their channel name (it's pretty ugly but I can't tell them :) ) and it causes little damages to the rendering.it looks like emojis are 2 digits wide but account for only 1 in the side bar, giving a wrong line rendering (the pipe char is 1 char on the right). Here's an example in gnome-terminal: image

typing in the input bar

When I insert an unicode emoji in the text (with copy paste in my example), the input zone has a strange behaviour, see: image When I finally send the message, everything gets mixed up image

But everything gets back to normal if I change channel and come back.

Regards, Christophe

jtdaugherty commented 1 year ago

Hi @chrnin - unfortunately this is a common problem with Unicode emoji. We have a FAQ entry about it. I'm sorry to say that there is not much we can do about it at the moment. Both of the issues you showed in screenshots are caused by emoji width disagreements between the terminal emulator and Matterhorn. In general, we don't have a good way to ensure that the two are in agreement in every case and new emoji are being added all the time.

chrnin commented 1 year ago

Oh ok, I missed this FAQ about emoji, thanks for the explanation ! I thought all emojis were 2 chars wide, but if it's not reliable, there's no way to bother with that. ;) Thanks !