Skip to content

Using CSI # S to scroll screen buffer is incorrect and can lead to data loss #724

Closed
@DHowett-MSFT

Description

@DHowett-MSFT

Environment data

PS version: 5.1.17712.1000
PSReadline version: 2.0.0-beta2
os: 10.0.17712.1000 (WinBuild.160101.0800)
PS file version: 10.0.17712.1000 (WinBuild.160101.0800)

Steps to reproduce or exception report

Make sure that the prompt is at the bottom of the screen, then press enter any number of times. One should do.
PSReadline will emit ^[[1S (from ConsoleLib.cs, perhaps via ReadLine.cs).

Scrolling the viewport in this manner can:

  • destroy the user's scrollback buffer
  • force an expensive full-buffer repaint over a VT link (like ssh or pty)

cc @zadjii-msft

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