Bug Report Scrollbar not updating while holding enter in powershell #1287

Closed
opened 2026-01-30 22:21:11 +00:00 by claunia · 3 comments
Owner

Originally created by @Summon528 on GitHub (May 23, 2019).

Environment

Windows build number: Microsoft Windows [Version 10.0.18898.1000]
Windows Terminal version (if applicable): 3f95d588051723

Any other software?

Steps to reproduce

  1. Open PowerShell in terminal (It works normally in cmd and wsl)
  2. Hold down enter

Expected behavior

Scrollbar should be scrollable after content passed the screen

Actual behavior

Scrollbar is still disabled

Demo video (see the scrollbar only update after the ls command)

Imgur

Originally created by @Summon528 on GitHub (May 23, 2019). <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18898.1000] Windows Terminal version (if applicable): 3f95d588051723 Any other software? ``` # Steps to reproduce 1. Open PowerShell in terminal (It works normally in `cmd` and `wsl`) 2. Hold down <kbd>enter</kbd> <!-- A description of how to trigger this bug. --> # Expected behavior Scrollbar should be scrollable after content passed the screen <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior Scrollbar is still disabled <!-- What's actually happening? --> #### Demo video (see the scrollbar only update after the `ls` command) ![Imgur](https://i.imgur.com/yJDxMoa.gif)
Author
Owner

@zadjii-msft commented on GitHub (May 23, 2019):

Oh hell, this is PSReadline doing something terrible with conpty. Not sure what quite yet, but the same behavior can be repoduced in conhost by running wsl, then powershell.exe. At this point, powershell.exe will be running in a conpty. The problem also goes away if you Remove-Module PSReadline.

My bet is that they're trying to detect the size of the console buffer, and if they're at the bottom, they're scrolling the buffer content upwards (either with the API or VT) instead of just emitting a newline. Since the buffer in conpty is only the size of the viewport, this happens immediately.

@lzybkr or @SteveL-MSFT for commentary.

I could've swore there was an issue for this already, but my memory escapes me

@zadjii-msft commented on GitHub (May 23, 2019): Oh hell, this is PSReadline doing something terrible with conpty. Not sure what quite yet, but the same behavior can be repoduced in conhost by running wsl, then powershell.exe. At this point, powershell.exe will be running in a conpty. The problem also goes away if you `Remove-Module PSReadline`. My bet is that they're trying to detect the size of the console buffer, and if they're at the bottom, they're scrolling the buffer content upwards (either with the API or VT) instead of just emitting a newline. Since the buffer in conpty is only the size of the viewport, this happens immediately. @lzybkr or @SteveL-MSFT for commentary. I could've swore there was an issue for this already, but my memory escapes me
Author
Owner

@lzybkr commented on GitHub (May 23, 2019):

Try PSReadLine 2.0.0-beta4. I recall this being fixed, and if I understand the repro correctly, I'm not reproducing the problem myself.

@lzybkr commented on GitHub (May 23, 2019): Try [PSReadLine 2.0.0-beta4](https://www.powershellgallery.com/packages/PSReadLine/2.0.0-beta4). I recall this being fixed, and if I understand the repro correctly, I'm not reproducing the problem myself.
Author
Owner

@DHowett-MSFT commented on GitHub (May 23, 2019):

Yeah, this was probably lzybkr/PSReadline#724.

@DHowett-MSFT commented on GitHub (May 23, 2019): Yeah, this was probably lzybkr/PSReadline#724.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1287