Windows build number: 10.0.19041.0
Windows Terminal version (if applicable): 1.1.2021.0
Any other software?
Ubuntu 20.04 LTS (WSL2)
WinCompose v0.9.4 (https://github.com/samhocevar/wincompose/releases/tag/v0.9.4)
rightAlt
+ o
a
The correct character ('å' in the above example) is sent to the terminal.
Seemingly no character is sent, at least nothing is displayed.
Probably related to #6309 as setting "experimental.input.forceVT": true
gives the expected behavior.
Huh. This doesn't exactly work in the traditional console either, and it was somewhat of a fluke that it worked in WT. It _should_, though.
This is what I get if I peek at the key events coming out of WC into the traditional console:
v 001 0010 002a 0000 ^@ 00000010
^ 001 0010 002a 0000 ^@ 00000000
v 001 0000 0000 00f6 � 00000000
^ 001 00e7 0000 00f6 � 00000000
^ 001 004f 0018 006f o 00000000
and here's what I'm getting over the tap:
␛[255;0;0;1;16;1_␛[255;0;0;0;16;1_
that 255 definitely ain't right
So, how should a third-party application send Unicode characters to Windows Terminal if SendInput()
no longer works by default?
As far as I can see, this issue was fixed in #7900. I'll close this issue for now as WinCompose works just fine on my end with the latest WT version.
The good thing is that I now finally understood, why we've been receiving weird key events, containing invalid scan codes, for third party applications employing SendInput
: WT doesn't use TranslateMessage(Ex)
properly. (I mean there's a very specific reason it doesn't... Namely the necessity to receive key events even for character keys.)
Most helpful comment
As far as I can see, this issue was fixed in #7900. I'll close this issue for now as WinCompose works just fine on my end with the latest WT version.
The good thing is that I now finally understood, why we've been receiving weird key events, containing invalid scan codes, for third party applications employing
SendInput
: WT doesn't useTranslateMessage(Ex)
properly. (I mean there's a very specific reason it doesn't... Namely the necessity to receive key events even for character keys.)