Pass keyboard layout down to ConPTY and consider readding support for GetConsoleKeyboardLayoutName #18160
Labels
Area-Server
Down in the muck of API call servicing, interprocess communication, eventing, etc.
Issue-Task
It's a feature request, but it doesn't really need a major design.
Product-Conhost
For issues in the Console codebase
Product-Conpty
For console issues specifically related to conpty
Milestone
Description of the new feature
To help PowerShell with their
ToUnicode
usage we should pass down the keyboard layout to ConPTY so that their keyboard-layout hack works:https://github.com/PowerShell/PSReadLine/blob/e87a265ef8d2c6c5498500deb155bf6258b34629/PSReadLine/PlatformWindows.cs#L1106-L1109
To avoid the need for such a workaround, we should readd support for the existing
GetConsoleKeyboardLayoutName
function. There's not really a good reason to not support it. It's also used by vim and probably others so it may be quite helpful.Proposed technical implementation details
No response
The text was updated successfully, but these errors were encountered: