[PR #18290] Can we have infinite scrollback? #31499

Open
opened 2026-01-31 09:47:40 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18290

State: open
Merged: No


Mom: We have infinite scrollback at home.
Infinite scrollback at home:

...very much finite. How do you define "infinite" scrollback anyway?
Does it entail downloading RAM? It's a mystery. So, this PR adds support
for 1B rows of scrollback, because that's >600GB of memory, which makes
it effectively unusable. But it's enough to have a lot of finity.

Thanks to the raised limit, this PR sets the default history size from
to 16Ki which is roughly 10MB of memory. The can be cut in half once we
remove the charOffsets cache on each ROW.

Related to #1410

Validation Steps Performed

  • Set scrollback to 1M lines
  • Dump 100MB of text and watch the RSS grow
  • Reflow the window (it lags a little) ✅
  • Clear the buffer (it's fast) ✅
**Original Pull Request:** https://github.com/microsoft/terminal/pull/18290 **State:** open **Merged:** No --- Mom: We have infinite scrollback at home. Infinite scrollback at home: ...very much finite. How do you define "infinite" scrollback anyway? Does it entail downloading RAM? It's a mystery. So, this PR adds support for 1B rows of scrollback, because that's >600GB of memory, which makes it effectively unusable. But it's enough to have a lot of finity. Thanks to the raised limit, this PR sets the default history size from to 16Ki which is roughly 10MB of memory. The can be cut in half once we remove the charOffsets cache on each ROW. Related to #1410 ## Validation Steps Performed * Set scrollback to 1M lines * Dump 100MB of text and watch the RSS grow * Reflow the window (it lags a little) ✅ * Clear the buffer (it's fast) ✅
claunia added the pull-request label 2026-01-31 09:47:40 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31499