-
Notifications
You must be signed in to change notification settings - Fork 312
Error on PageUp/PageDown keys #700
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
Comments
On an unrelated note, if there is anything bound to Control+C, that bind won't work, so I can't do CopyOrCancelLine. |
On your unrelated note, that should be fixed in 2.0.0-beta2 - but you need to specify Ctrl+c instead of Ctrl+C (lower case |
I meant beta2 (the link was correct). |
I come from the Home/End buttons not working issue and it still doesn't work for me. I tried installing the latest Beta, but I'm not sure if it's gone right or not. I am using vanilla PS Core on both my local box and my remote Ubuntu. Home/End is working fine locally, both in Windows and in WSL. They also work remotely if using bash, or pwsh without PSReadline. It only breaks when PSReadline is enabled through ssh. I am using the latest build of Win32-OpenSSH. To be sure, how do you install the latest beta of PSReadline? I tried Install-Module -Name PSReadLine -RequiredVersion 2.0.0-beta3 -AllowPrerelease -Scope CurrentUser But if I check later Get-Module PSReadLine -ListAvailable -all
Directory: C:\Users\mnagy\Documents\PowerShell\Modules
ModuleType Version Name PSEdition ExportedCommands
---------- ------- ---- --------- ----------------
Script 2.0.0 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLine…
Script 0.0 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineOption, Set-PSReadLineKeyHand…
Directory: C:\kellekek\microsoft\powershell\6.2.0\Modules
ModuleType Version Name PSEdition ExportedCommands
---------- ------- ---- --------- ----------------
Script 2.0.0 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLine…
Script 0.0 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineOption, Set-PSReadLineKeyHand… How can I check what version is loaded when Powershell starts? And what are the |
I can also repro this in iTerm2 on macOS and on Ubuntu. After it does crash, I can no longer use I suppose the actual problem is with the
|
I may not have been clear. There is no version of ssh client-server (Win32-OpenSSH or native), PSReadline, PowerShell and local-remote OS in which this would work. It seems like a very deterministic issue when using PS through an SSH connection. It makes using PS very annoying. |
I'm also seeing this on 7.0.0 preview 1 with PSReadLine 2.0.0-beta4 |
is there an interim bandaid to disable the pageup/pagedown key bindings ? I am also having this problem. |
@frasercarter You can add this to your Remove-PSReadLineKeyHandler -Chord ([System.ConsoleKey]::PageUp)
Remove-PSReadLineKeyHandler -Chord ([System.ConsoleKey]::PageDown) |
Or more succinctly: Remove-PSReadLineKeyHandler -Chord PageUp
Remove-PSReadLineKeyHandler -Chord PageDown |
With this environment
I get a similar problem but not the same exception.
Running the suggested |
Close as a duplicate of #1016 |
Environment data
This is Fedora 28, using the terminal Konsole.
Steps to reproduce or exception report
Just hit PageUp or PageDown
The text was updated successfully, but these errors were encountered: