3 ms·
kitty does indeed seem to do best among the four terminals I tested (Kitty, wezTerm, Konsole and Terminator) https://imgur.com/X0cD3jA https://imgur.com/X0cD3jA
by monzool 5y ago
kitty does indeed seem to do best among the four terminals I tested (Kitty, wezTerm, Konsole and Terminator) https://imgur.com/X0cD3jA https://imgur.com/X0cD3jA The motorboat in Kitty is quite small though?
- bonzini 5y agoThat's because kitty correctly prints not an emoji motorboat, but rather a text motorboat; the \U0001F6E5 defaults to text presentation and that is why east_asian_width returns 'N'. You can get the fancy one with print("\U0001F6E5\uFE0Fhello"). However, the bug that the post alludes to is that not all terminals override the east_asian_width to 'W' when they see "\uFE0F". For example on gnome-terminal the "h" overlaps with the right half of the boat.
- Per_Bothner 5y agoPlease try DomTerm (https://domterm.org https://domterm.org). The 2.9.4 AppImage (https://github.com/PerBothner/DomTerm/releases/tag/2.9.4 https://github.com/PerBothner/DomTerm/releases/tag/2.9.4) should have the needed support for grapheme clusters and hopefully work on reasonably up-to-date Linux systems. Of course there are more recent fixes and improvements if you don't mind building from source.