Prevent scrolling when scrolled up #6366

Closed
opened 2026-01-31 00:36:47 +00:00 by claunia · 3 comments
Owner

Originally created by @mnpenner on GitHub (Feb 11, 2020).

Description of the new feature/enhancement

When running a long-running script, I sometimes scroll up to see something that whizzed by. Windows terminal keeps scrolling down by an amount equivalent to the new lines written (does not scroll all the way down to the bottom). I'd like it to not scroll at all if I've scrolled up even a little bit.

Proposed technical implementation details (optional)

Not sure. You'll have to detect when we're scrolled all the way to the bottom to engage autoscroll, and then disable autoscroll when scrolled up.

Alternatively, a readily discoverable scroll-lock option would be acceptable. Perhaps by right-clicking the tab? I was so desperate I tried the "Scroll Lock" button on my keyboard hoping it would do something useful for the first time in my life (no luck).

Originally created by @mnpenner on GitHub (Feb 11, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> When running a long-running script, I sometimes scroll up to see something that whizzed by. Windows terminal keeps scrolling down by an amount equivalent to the new lines written (does not scroll all the way down to the bottom). I'd like it to not scroll at all if I've scrolled up even a little bit. # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. --> Not sure. You'll have to detect when we're scrolled all the way to the bottom to engage autoscroll, and then disable autoscroll when scrolled up. Alternatively, a readily discoverable scroll-lock option would be acceptable. Perhaps by right-clicking the tab? I was so desperate I tried the "Scroll Lock" button on my keyboard hoping it would do something useful for the first time in my life (no luck).
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 00:36:47 +00:00
Author
Owner

@j4james commented on GitHub (Feb 11, 2020):

This sounds like a duplicate of #3863.

@j4james commented on GitHub (Feb 11, 2020): This sounds like a duplicate of #3863.
Author
Owner

@zadjii-msft commented on GitHub (Feb 11, 2020):

Yea I'd definitely say that this is a /dup of #3863. Thanks!

@zadjii-msft commented on GitHub (Feb 11, 2020): Yea I'd definitely say that this is a /dup of #3863. Thanks!
Author
Owner

@ghost commented on GitHub (Feb 11, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Feb 11, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6366