-
Notifications
You must be signed in to change notification settings - Fork 305
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
Keyboard not working with RDP windows host using iOS on pwsh 7.0.0 #1428
Comments
@schmimps Can you please try start PowerShell 7 by |
@daxian-dbw You're right, thanks! It works with |
@daxian-dbw I tried further with the NonIteractive option. The problem is that I cannot use scripts that ask for something. I can write inside the console, but as soon as I launch a script that asks for an answer, I have an error telling: "PowerShell is in NonInteractive mode. Read and Prompt functionality is not available." |
Thanks @schmimps for trying it out. That's just a way to confirm the issue is related to PSReadLine. |
I am able to reproduce this on Mac OS High Sierra connecting to Windows 10 64 bit Version 2004 (oS Build 19041.450). Removing PSReadline however does correct the issue. If i downgrade to PSReadline 2.0.0 the problem goes away, it is present on 2.0.2 c:> $PSVersionTable Name Value PSVersion 5.1.19041.1 @daxian-dbw, and way to add this issue? I have a confirmed sustainable repro. |
Chatted with @dgoldman-msft offline and it looks this is a regression from 2.0.1 to 2.0.0. |
I am also running into this issue with powershell 7.1.3 when I RDP to the system using ARM WVD Web Client. I do not get the issue when I RDP using the 'Remote Desktop' modern app. I tried upgrading PSReadLine to 2.2.0-beta and that did not fix the issue. Removing the PSReadLine module resolved the issue for both PowerShell (5.1.19041.906) and also pwsh. |
I experience this issue with 7.1.3 as well on a 4th Gen iPad Air, iPadOS 14.6 connecting via MS RDP app . PS7 will not take input from the magic keyboard or even the soft keyboard. |
I'm able to repro this. The interesting thing is that if you use Windows Terminal, then PS7 w/ PSRL2.2 works fine, just not in the old conhost. Also, up arrow and enter works, just not alpha keys. |
Steve let me check. I just checked and with you 7.13 with PSR2.1 and above in windows terminal works, still not the old way.
Thanks
Dave
…________________________________
From: Steve Lee ***@***.***>
Sent: Tuesday, June 29, 2021 8:16:36 PM
To: PowerShell/PSReadLine ***@***.***>
Cc: Dave ***@***.***>; Mention ***@***.***>
Subject: Re: [PowerShell/PSReadLine] Keyboard not working with RDP windows host using iOS on pwsh 7.0.0 (#1428)
I'm able to repro this. The interesting thing is that if you use Windows Terminal, then PS7 w/ PSRL2.2 works fine, just not in the old conhost.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1428 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJQPRPGGCB6A3WFQI7JWU43TVJO6JANCNFSM4LUS7VMA>.
Sent from mail.dgoldman.org
|
I would suggest using Windows Terminal until we can figure out what changed between 2.0.0 and 2.0.1 that regressed this |
It appears the regression is between 2.0.0 and 1.2.0 and not between 2.0.0 and 2.0.1. This makes it a lot harder to track down the specific change as there were substantial changes between 1.2 and 2.0. |
Ok, figured out the problem. Seems like an easy fix. PR soon. |
🎉 This issue was addressed in 2632, which has now been successfully released in |
October 2022: still can't type into a Powershell on Windows 11 (fully up to date) when using Remote Desktop from mac. Oddly enough, I can scroll through the history with arrow up & down , backspace/delete , CTRL+C also works but any printable character gets ignored. Same with PowerShell 7.2.6. |
If this can help someone:
|
@fplanque Please make sure you are using the latest PSReadLine module (2.2.6 at the moment). |
@daxian-dbw I would like to but I am a new user and I have no idea what the PSReadLine module is and how to update it. Can you point me into the right direction? Thank you. |
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:
|
I have been looking for the answer to this problem for so long. The thread for this issue has made me so very happy. |
@daxian-dbw Thank you! Worked fabulously. |
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 #1428 (comment) indicates this is a regression in newer version of PSReadLine (or .NET Core 3.1).
Environment data
The text was updated successfully, but these errors were encountered: