-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Vertical scrolling duplicates last ran command #4812
Comments
That's definitely weird.
|
I did try to reproduce this some by running similar commands and via resizing terminal. While I didn't exactly reproduce what happened originally, I was able to somewhat reproduce something similar with something similar to this
|
I'm currently working on a whole host of resizing bugs right now so I just wanted a quick sanity check if this is a part of that. Since you didn't, then I can pretty safely assume it's not part of that bucket and it's something else entirely. There's other clear issues running around, esp. "notice that previous output shows up even though console was cleared (this doesn't happen for 'normal' commands like ls)", but then you said
and that's definitely unique. Maybe the |
pwsh> Get-Module PSReadline ModuleType Version PreRelease Name ExportedCommands ---------- ------- ---------- ---- ---------------- Script 2.0.0 PSReadLine {Get-PSReadLineKeyHandler, Get-PSReadLineOption, … Regarding clear, I don't think that's related to PS 7. I noticed that before and just chalked it up to the "virtualized" nature of the terminal. Others have reported the same thing i.e. #4445 While attempting to recreate this, clearing the screen and then up arrowing or scrolling and seeing past output did seem to help reproduce it. However I don't recall doing that initially. |
@zadjii-msft I can send a video privately on the clear / scrolling issue given input on where / how to send. I'm not positive that's the same issue as originally posted but may be related |
Email with attachment sent to secure@microsoft.com referencing this issue |
This comment has been minimized.
This comment has been minimized.
Sorry, my team never gets stuff sent to secure@ -- it's an address for reporting security concerns. Would you mind uploading it to OneDrive or something similar? |
Oh the issue template comments made it sound like any attachment with confidential info could be sent there and linked here. I can upload to OneDrive or similar when back on my box but posting a link to it here is the same problem. It might not have anything concerning to share though, I'll double check later. |
Oh, i didn't realize our template still said that. Really sorry! If you'd prefer, my work e-mail is on my github profile. 😄 |
@DHowett-MSFT Sent. As mentioned the video may be showing a slightly different issue than I originally posted here but perhaps similar or related |
One other point to mention was that after this happened I also noticed that pasting copied text into the terminal wasn't working either anymore. I closed the Terminal and reopened it after that point. Somehow it seemed to get into a weird state but haven't been able to quite reproduce the exact original behavior. |
@thnk2wn sorry for taking a while on this! I got a chance to dig into your video, and it looks like this is similar (if not identical) to #3126. Things that get pushed off the screen don't end up getting cleared, because Powershell's implementation of "clear" is actually "draw a bunch of empty spaces all over the screen." 😄 Just as a test, if instead of clearing you run...
does the clear actually take? If you're getting a single line hanging over from the last buffer, that'll be #5039. 😄 |
Thanks @DHowett-MSFT. When I run that command the clear takes and I can't scroll back to prior content like I can with clear. I'm not sure if what I saw was the same as #5039 or not. It may have been but my original issue and screenshot doesn't quite seem to be the same as either issue but it's hard to say as I can't reproduce it consistently. I guess this can be closed or I can test again if/when either of those potentially related issues are addressed. |
Thanks for hanging in there. I'm going to advocate for "both" right now -- I'll close this out in hope that the changes we've made in this area recently helped it, because we just did a whole lot for invalidation and drawing and clearing and all that. Once 0.11 drops, please do file a bug if it keeps hitting. It'll be really great to get to the bottom of it. 😄 |
Environment
Steps to reproduce
I recently updated to PowerShell 7. I'm assuming that's related but not sure.
I ran a command like
az iot hub device-identity create --hub-name myHub --device-id MyDevice --edge-enabled
and then scrolled down to see output.Expected behavior
I see both the command I ran (once) and the output.
Actual behavior
Afterwards when I scroll, I see the command I ran multiple times even though I only ran the command once. It seems to almost "dock" to the top somewhat but it's jumpy and is usually show more than one time.
The text was updated successfully, but these errors were encountered: