-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
scrollback doesn't work as expected #361
Comments
This seems to be happening because of this logic in if (++this.ybase === this.scrollback) {
this.ybase = this.ybase / 2 | 0;
this.lines = this.lines.slice(-(this.ybase + this.rows) + 1);
} Here are a few observations/questions:
What if instead of this model where It would probably be even better to just use |
I have a WIP branch that implements this new model using a |
@Tyriar I'd be happy to do some testing on your branch and provide feedback if you think the timing is 🆗 . |
It's a little too broken currently, will have to find some time to finish it off |
It appears that the total buffer size wants to be
<viewport rows> + <scrollback>
, however when I hook it up in vscode to be10
, I notice that the amount of scrollback provided is not 10 and seems to alternate between 2 values.Running
ll
to get a chunk of output, I get 6 lines of scrollback the first time, 8 the second time, 5 the third, 7 the fourth, etc. It should be exactly 10 every time.The text was updated successfully, but these errors were encountered: