xterm.js
xterm.js copied to clipboard
emoji/unicode support mostly broken in windows
Reminder issue to get the hands dirty to identify/fix unicode issues in windows, for some background see comments in https://github.com/xtermjs/xterm.js/pull/2568.
Any plans to iterate on this issue?
Just time is blocking it, I have too many more important things to look at so I doubt I would be able to get to it. This needs some investigation of what differs with emoji between native ptys and Conpty on Windows and to come up with a plan to support both.
Emoji support for windows terminal looks backlogged since 2018 https://github.com/microsoft/terminal/issues/190
Oh ok, so it's partially supported then. I thought I saw them advertising emoji support as one of the shiny things in WT 🤔
Last time I looked at it the problem was around line/screen refresh pattern used by conpty. The emojis itself came thought but got partially scrambled by wrong offsets of the refreshs (deleting parts of multibyte chars).
Some of the emoji still doesn't show up.
still no hope... Vs code integrated bash terminal doesn't show all the emoji
- echo emoji using
.bash_profile
does work but if we directly try to input emoji then it won't work - Emoji shows up in external bash terminal
Quick update here: Windows Terminal's emoji layout & handling has improved a lot over the last couple of years and now seems to handle most emoji that I throw at it pretty well. If you find specific emoji that don't render correctly in Windows Terminal, please find/file an issue at https://github.com/microsoft/terminal/issues
VSCode's terminal is a separate implementation built by @tyriar & team using JavaScript (since VSCode is an Electron-based app) and needs a little work to make emoji work better. As Daniel points out above, "this needs some investigation" so could be a good candidate for someone with some time available to dig in and see if improvements can be made?
Hi, the issue i submitted to microsoft/vscode reports a bug in the pasting routine, and i've been redirected here. Briefly: If the text is pasted via right-click, it breaks up in multiple � characters. If the text is pasted via ctrl+v, it works correctly.
I just opened another issue in microsoft/terminal that might be related, i'm not sure: https://github.com/microsoft/terminal/issues/14084