PSReadLine: Keyboard not working with RDP windows host using iOS on pwsh 7.0.0

Steps to reproduce

On iOS, use any iOS RDP app (ms Remote Desktop or Parallels client for example) to access a Windows 10 64bits host. Open Powershell 7.0.0 and type anything. Keyboard doesn’t work. It works with Powershell 6.4 for example as for any other application

The command https://github.com/PowerShell/PSReadLine/issues/1428#issuecomment-603160883 indicates this is a regression in newer version of PSReadLine (or .NET Core 3.1).

Environment data

Name                           Value
----                           -----
PSVersion                      7.0.0
PSEdition                      Core
GitCommitId                    7.0.0
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 20 (10 by maintainers)

Most upvoted comments

Open up the 7.2.6 PowerShell on you Win11 machine, then run the following command:

Install-Module PSReadLine -RequiredVersion 2.2.6 -Scope CurrentUser

Then start a new PowerShell session, and run the following command to verify the version of PSReadLine you are using:

Get-Module PSReadLine  ## you should see 2.2.6

If this can help someone:

  • Workaround: In Remote Desktop Client, change Keyboard Mode to Scancode instead of Unicode and you can type…
  • Drawback: any keyboard differences (special chars) between Mac and PC standard keyboards will produce the wrong character. Good luck finding the backslash \ in Scancode mode ! 😦
2022-10-20_23-48-50