You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mintty seems to misdetect the width of Unicode emoji (e.g.: 🍳), causing display glitches. The issue is not exclusive to mintty, it also happens with e.g. PuTTY, but I've ruled out mostly everything else. It happens even in a local shell with no tmux or anything, and my locale settings are all UTF-8 – both in mintty and the environment. Tried many different fonts: Consolas, DejaVu Sans Mono, Fira Mono, Input Mono...
OS: Windows 10 Home x64 (Creators Update), Ubuntu 17.04 in Windows Subsystem for Linux mintty: 2.7.8 (wsltty 0.7.83)
Also tested with mintty 2.7.3 (Git Bash 2.12.2.windows.2)
Unless with issues #638 or #615, in this case the respective character is wide, but only since Unicode 8.0, when it was changed from being narrow in earlier versions.
As soon as cygwin locale data are updated to be based on a later Unicode version, display should adapt automatically.
For now, the only solution would be to offer an option to define character width based on mintty's own width data (like xterm -mk_width, see also #88).
As explained above, this is not really a mintty issue (although there could be a workaround) but a cygwin/locale issue. My request to update cygwin Unicode data has not yet been accepted.
Emojis can be displayed like normal glyphs if the selected font includes them.
Whether colour glyphs are displayed, depends on support by the Windows API being used (Uniscribe);
I doubt it.
Once Cygwin is updated to provide Unicode 9.0 or later width properties, Charwidth will no longer be needed to tweak emojis to their intended width. (And I provided a patch for an update.) Charwidth is only a workaround as long as Cygwin stays at Unicode 5.0 width data. It's a trade-off. You can go without it, and perhaps set EmojiPlacement=full.
I'm having difficulties understanding why I can't get an emoji to display inside Cygwin/Mintty whereas it is displayed correctly in Msys/Mintty
The image should be self explanatory - Cygwin/Mintty on the left, Msys/Mintty on the right - both Fira Code, 11pt, no other changes
Worth mentioning I'm not terminal/shell savvy to the point of not understanding exactly what is the definition of a terminal as opposed to a shell and how Cygwin x Mintty x Msys compare and interoperate.
More info: running Fish as the shell and Starship as the theme. Windows 10.
Where did you install the emojis? If you put them into your MSYS home directory (~/.config/mintty/emojis), cygwin cannot see them because your home directory is somewhere else (unless reconfigured). You'll have to copy (or hard-link) the emojis into your cygwin ~/.config/mintty/emojis, or move them to a common place: $APPDATA/mintty/emojis.
I'm not sure I know where I installed the "emojis" because all I did a while back was get the Fira Code font for my editor and also get the Powerline fonts. So because I'm on Windows all I did was install the fonts and now they appear in Font Manager.
I couldn't find any of the paths you mentioned at ~/.config/mintty/emojis (either cyg or msys) or %appdata%/mintty/emojis
So do you actually have coloured image emojis? Or just the font-included monochrome emoji glyphs?
In that case, it may just be a matter of using different fonts.
Activity
mintty commentedon Jul 16, 2017
Unless with issues #638 or #615, in this case the respective character is wide, but only since Unicode 8.0, when it was changed from being narrow in earlier versions.
As soon as cygwin locale data are updated to be based on a later Unicode version, display should adapt automatically.
For now, the only solution would be to offer an option to define character width based on mintty's own width data (like xterm -mk_width, see also #88).
prepare native width option (#671, #88), Unicode 10.0
alanfran commentedon Aug 22, 2017
There has been some activity on the Cygwin mailing list that appears to be about this issue.
Original Post (July 26)
Subject Index
mintty commentedon Aug 22, 2017
Yes, I asked for an update and provided a patch meanwhile.
nshtg commentedon Oct 25, 2017
2.8.0 has these Bugs. Has there been any progress?
Also: Is it planned to enable "custom" fonts to provide emojis (and other Unicode chars), e.g. with color?
mintty commentedon Oct 25, 2017
As explained above, this is not really a mintty issue (although there could be a workaround) but a cygwin/locale issue. My request to update cygwin Unicode data has not yet been accepted.
mintty commentedon Oct 25, 2017
Emojis can be displayed like normal glyphs if the selected font includes them.
Whether colour glyphs are displayed, depends on support by the Windows API being used (Uniscribe);
I doubt it.
nshtg commentedon Oct 25, 2017
Is there a specific reason why you prefer Uniscribe over DirectWrite?
mintty commentedon Oct 25, 2017
See #430.
option Charwidth for built-in Unicode width or ambiguous wide mode (#88…
mintty commentedon Oct 31, 2017
Released 2.8.1 with new option
Charwidth=unicodeto activate built-in character width reference.nshtg commentedon Oct 31, 2017
I can confirm the fix too. Thank you!!
Emoji support (wsltty#82, #600, ~#671, ~#430)
1 remaining item
fix delay of Emoji display (mintty/wsltty#82, #600, ~#430, ~#671)
EmojiPlacement mode "full" (wsltty#82, #600, ~#671, ~#430)
mintty commentedon Feb 6, 2018
Released 2.8.4 with full emoji support.
lizy14 commentedon Feb 8, 2018
Charwidthworks far less than perfect.steps:
Homenote that the cursor is no longer visible
12note the unexpected width
Homeagainnote the unexpected cursor position
12againnothing but chaotic. expecting
1212, got1 21212instead.config:
with Windows 10 latest.
mintty commentedon Feb 8, 2018
This is an inevitable consequence of using the
Charwidthsetting.See https://github.com/mintty/mintty/wiki/Tips#character-width about it. Admittedly the warning should also be included in the manual page.
Once Cygwin is updated to provide Unicode 9.0 or later width properties,
Charwidthwill no longer be needed to tweak emojis to their intended width. (And I provided a patch for an update.)Charwidthis only a workaround as long as Cygwin stays at Unicode 5.0 width data. It's a trade-off. You can go without it, and perhaps setEmojiPlacement=full.add Charwidth warning (mintty/mintty#671)
mention cygwin version up to which option Charwidth is suggested for …
character attribute to enforce single/double width (#615, #979, #938, #…
mintty commentedon May 20, 2020
Released 3.1.5 with explicit character width attribute support.
fmaiabatista commentedon Jun 22, 2020
Hey guys,
I'm having difficulties understanding why I can't get an emoji to display inside Cygwin/Mintty whereas it is displayed correctly in Msys/Mintty
The image should be self explanatory - Cygwin/Mintty on the left, Msys/Mintty on the right - both Fira Code, 11pt, no other changes
Worth mentioning I'm not terminal/shell savvy to the point of not understanding exactly what is the definition of a terminal as opposed to a shell and how Cygwin x Mintty x Msys compare and interoperate.
More info: running Fish as the shell and Starship as the theme. Windows 10.
mintty commentedon Jun 23, 2020
Where did you install the emojis? If you put them into your MSYS home directory (~/.config/mintty/emojis), cygwin cannot see them because your home directory is somewhere else (unless reconfigured). You'll have to copy (or hard-link) the emojis into your cygwin ~/.config/mintty/emojis, or move them to a common place: $APPDATA/mintty/emojis.
fmaiabatista commentedon Jun 23, 2020
I'm not sure I know where I installed the "emojis" because all I did a while back was get the Fira Code font for my editor and also get the Powerline fonts. So because I'm on Windows all I did was install the fonts and now they appear in Font Manager.
I couldn't find any of the paths you mentioned at
~/.config/mintty/emojis(either cyg or msys) or%appdata%/mintty/emojismintty commentedon Jun 23, 2020
So do you actually have coloured image emojis? Or just the font-included monochrome emoji glyphs?
In that case, it may just be a matter of using different fonts.
fmaiabatista commentedon Jun 23, 2020
I believe it's the first case, monochrome font-included emoji glyphs.
That's the thing. I expected it would work in both because they are running the same "terminal emulator" behind (mintty 3.1.8)?
mintty commentedon Jun 24, 2020
You have local configuration and common configuration.
To install real emojis, please check the wiki Tips.