-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
Characters with diacritics cannot be typed #64922
Comments
Duplicate #35901
If this is true then there is likely a problem with how text encoding is setup in your terminal. |
Hi @Tyriar Thanks for having a look at the issue even though I do not agree with marking this as a duplicate of #35901 - that one is an issue with cutting text due to font size/font family/line spacing, ... My issue has nothing to do with how text is displayed in the terminal, it really is just an issue with actual typing into the terminal. When I write a simple node.js application that just logs a text to the console (see below) and execute it, then the characters with diacritics are displayed - no issue at all.
The problem is that I simply cannot type those characters within the terminal itself.
Could you maybe elaborate on this little bit more? How can I change the way my integrated terminal is setup for the text encoding? Because as I mentioned in the issue, I cannot type those characters only into the integrated terminal within VSCode. I can successfully type the mentioned characters when I run terminal app directly, outside of VSCode. So to me it looks like the integrated terminal is somehow "filtering" which keys can be pressed within itself and is allowing some but blocking/ignoring others. But maybe there is some setting I don't know that I could use to configure "text encoding" for the integrated terminal, as you mention? One more thing which I have just discovered:
So I cannot type those only within the Any ideas what I can check / try / configure? Many thanks! |
This is further proof of my theory 😃 Could you |
Hi Output of
Output of
Then I tried setting the LANG environment variable to the value from terminal.app ( Any other ideas maybe? Many thanks, |
I can confirm this is also happening in Portuguese. I can type characters like
Please bear in mind that some foreign keyboard layouts, like mine, have dedicated dead keys for special characters, we do not use Alt-Gr or other shortcuts to type non-ASCII characters like a typical US layout user would do. For example, to write |
I think this is actually a duplicate of #59438, upstream issue is xtermjs/xterm.js#2151 /duplicate #59438 |
Hi @Tyriar Thank you for looking at this. However I am not sure this is a duplicate as in my case it's related to any character that contains diacritics. Though it behaves strange only in bash, in node it's fine. This is how it looks on my mac, maybe you can tell more based on it, whether it is a duplicate or not really: Many thanks, |
@mifko do you type them with altgr? That seems to be the underlying problem with that issue xtermjs/xterm.js#2151 (comment) |
Hi @Tyriar No, i type them with a single key press. My keyboard is set to "Slovak - qwerty". When this keyboard is active, pressing for instance the key with I tried now switching to And this is how it looks in the Terminal.app, both with Maybe any of that helps? Many thanks, |
Hi @Tyriar Tried to set Then tried to set Even tried to change renderer ( Many thanks, |
@Tyriar Yes there is some mixing with utf8 bytes going on: the shown <00c5><00a1> for š are the utf8 bytes (0xC5 0xA1) for that character. Not sure what the 00c5 thing means here, if that contains the "codepoint width" the backend prolly gets |
Steps to Reproduce:
Result: Nothing appears in the terminal
Expected: Character with terminal appears in the terminal
More info on characters with diacritics:
Additional info:
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: