Console erasing/truncating buffer history #143

Closed
opened 2026-01-30 21:43:36 +00:00 by claunia · 10 comments
Owner

Originally created by @bitcrazed on GitHub (Feb 16, 2018).

From @MaximoTrinidad on May 26, 2017 15:51

This bug-tracker is monitored by developers and other technical types. We like detail! So please use this form and tell us, concisely but precisely, what's up. Please fill out ALL THE FIELDS!

If you have a feature request, please post to the UserVoice. If you're reporting a BSOD, don't post here! Instead, e-mail "secure@microsoft.com", and if possible attach the minidump from "C:\Windows\minidump".

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    Microsoft Windows [Version 10.0.16199.1000]

  • What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)
    After executing a number of Linux commands, I scroll-up to review what I type. The history displayed is limited and only scrolling one page.

  • What's wrong / what should be happening instead:
    Seems like buffer history it's been erase or truncated so when you scroll-up only a limited number lines are displayed back. It should display all commands with results of what I've done.

bash_history-2017-05-26_11-18-04

See our contributing instructions for assistance.

Copied from original issue: Microsoft/WSL#2161

Originally created by @bitcrazed on GitHub (Feb 16, 2018). _From @MaximoTrinidad on May 26, 2017 15:51_ This bug-tracker is monitored by developers and other technical types. We like detail! So please use this form and tell us, concisely but precisely, what's up. Please fill out ALL THE FIELDS! If you have a feature request, please post to [the UserVoice](https://wpdev.uservoice.com/forums/266908). If you're reporting a BSOD, don't post here! Instead, e-mail "secure@microsoft.com", and if possible attach the minidump from "C:\Windows\minidump\". * Your Windows build number: (Type `ver` at a Windows Command Prompt) Microsoft Windows [Version 10.0.16199.1000] * What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots) After executing a number of Linux commands, I scroll-up to review what I type. The history displayed is limited and only scrolling one page. * What's wrong / what should be happening instead: Seems like buffer history it's been erase or truncated so when you scroll-up only a limited number lines are displayed back. It should display all commands with results of what I've done. ![bash_history-2017-05-26_11-18-04](https://cloud.githubusercontent.com/assets/19892435/26502083/6d602aba-4209-11e7-9b34-64a4de0ebbae.jpg) See [our contributing instructions](/CONTRIBUTING.md) for assistance. _Copied from original issue: Microsoft/WSL#2161_
claunia added the Product-ConhostResolution-Fix-Available labels 2026-01-30 21:43:36 +00:00
Author
Owner

@bitcrazed commented on GitHub (Feb 16, 2018):

From @zadjii-msft on May 26, 2017 19:49

You previously ran apt in that console window, right?

This is #1984 IIRC

@bitcrazed commented on GitHub (Feb 16, 2018): _From @zadjii-msft on May 26, 2017 19:49_ You previously ran `apt` in that console window, right? This is #1984 IIRC
Author
Owner

@bitcrazed commented on GitHub (Feb 16, 2018):

From @MaximoTrinidad on May 27, 2017 2:55

No! Could be any command that returns over one page on screen. You still can't page-up or scroll up to see the content.

@bitcrazed commented on GitHub (Feb 16, 2018): _From @MaximoTrinidad on May 27, 2017 2:55_ No! Could be any command that returns over one page on screen. You still can't page-up or scroll up to see the content.
Author
Owner

@bitcrazed commented on GitHub (Feb 16, 2018):

From @sunjoong on May 27, 2017 9:46

Could be any command that returns over one page on screen.

"cat /etc/inputrc" returns over one page on screen. I commanded "df -h", "cat /etc/inputrc", and then scrolled screen up;
screen

@bitcrazed commented on GitHub (Feb 16, 2018): _From @sunjoong on May 27, 2017 9:46_ > Could be any command that returns over one page on screen. "`cat /etc/inputrc`" returns over one page on screen. I commanded "`df -h`", "`cat /etc/inputrc`", and then scrolled screen up; ![screen](https://cloud.githubusercontent.com/assets/2748000/26520400/ce04919a-430c-11e7-834c-00b7b374744e.png)
Author
Owner

@bitcrazed commented on GitHub (Feb 16, 2018):

From @zadjii-msft on May 30, 2017 16:2

Nope, it's not about returning more than one screen of content. apt install sets the scroll margins in a very particular way, or cleans then in a certain way that conhost doesn't clean up properly. I'm sure there are other applications that do this too, but I know for a fact that I can repro this with apt install.

@bitcrazed commented on GitHub (Feb 16, 2018): _From @zadjii-msft on May 30, 2017 16:2_ Nope, it's not about returning more than one screen of content. `apt install` sets the scroll margins in a very particular way, or cleans then in a certain way that conhost doesn't clean up properly. I'm sure there are other applications that do this too, but I know for a fact that I can repro this with `apt install`.
Author
Owner

@bitcrazed commented on GitHub (Feb 16, 2018):

From @MaximoTrinidad on May 30, 2017 18:33

Hum! I'm currently trying to rebuild my Windows 10 Bash subsystem manually. It became a little unstable as it gave an error (0x80070091) when trying both uninstall and install.

I will update this incident later!

@bitcrazed commented on GitHub (Feb 16, 2018): _From @MaximoTrinidad on May 30, 2017 18:33_ Hum! I'm currently trying to rebuild my Windows 10 Bash subsystem manually. It became a little unstable as it gave an error (0x80070091) when trying both uninstall and install. I will update this incident later!
Author
Owner

@bitcrazed commented on GitHub (Feb 16, 2018):

From @gabbayo on October 16, 2017 17:47

I also notice that this phenomenon appears only after running "apt install".

@bitcrazed commented on GitHub (Feb 16, 2018): _From @gabbayo on October 16, 2017 17:47_ I also notice that this phenomenon appears only after running "apt install".
Author
Owner

@bitcrazed commented on GitHub (Feb 16, 2018):

From @zadjii-msft on October 16, 2017 19:53

@gabbayo what Windows build number are you on?

@bitcrazed commented on GitHub (Feb 16, 2018): _From @zadjii-msft on October 16, 2017 19:53_ @gabbayo what Windows build number are you on?
Author
Owner

@bitcrazed commented on GitHub (Feb 16, 2018):

From @gabbayo on October 16, 2017 19:57

@zadjii-msft 15063.674

@bitcrazed commented on GitHub (Feb 16, 2018): _From @gabbayo on October 16, 2017 19:57_ @zadjii-msft 15063.674
Author
Owner

@bitcrazed commented on GitHub (Feb 16, 2018):

From @zadjii-msft on October 16, 2017 20:0

Thanks! You're on the Creator's Update, and I think a patch for this issue is available in Fall Creator's update, which should be rolling out tomorrow, so let me know if updating to the latest build doesn't fix this!

@bitcrazed commented on GitHub (Feb 16, 2018): _From @zadjii-msft on October 16, 2017 20:0_ Thanks! You're on the Creator's Update, and I think a patch for this issue is available in Fall Creator's update, which should be rolling out tomorrow, so let me know if updating to the latest build doesn't fix this!
Author
Owner

@bitcrazed commented on GitHub (Feb 16, 2018):

This issue was moved to Microsoft/console#105

@bitcrazed commented on GitHub (Feb 16, 2018): This issue was moved to Microsoft/console#105
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#143