Skip to content

PageDown while pwsh is processing command => System.PlatformNotSupportedException #1016

@mi-hol

Description

@mi-hol

Pressing PageDown while pwsh is processing command gives System.PlatformNotSupportedException

Environment

PSReadLine: 2.0.0-beta4
PowerShell: 7.0.0-preview.3
OS: Linux 4.4.0-18898-Microsoft #1000-Microsoft Fri May 10 16:34:00 PST 2019
Last 17 Keys

 l l Enter
 l s Enter
 c d Spacebar I m Tab Enter
 l s Enter
 PageDown

Exception

System.PlatformNotSupportedException: Operation is not supported on this platform.
   at System.ConsolePal.SetWindowPosition(Int32 left, Int32 top)
   at System.Console.SetWindowPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.Internal.VirtualTerminal.SetWindowPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ScrollDisplayDown(Nullable`1 key, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(PSKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)

Environment data

Steps to reproduce or exception report

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions