Scroll position often snaps to mid-window when typing #6868

Open
opened 2026-01-31 00:49:20 +00:00 by claunia · 0 comments
Owner

Originally created by @randomascii on GitHub (Mar 14, 2020).

Environment

Windows Terminal version (if applicable): Windows Terminal (Preview)
Version: 0.9.433.0

Any other software? None applicable

Steps to reproduce

Run "dir" a few times to get a few hundred lines of output.
Resize the terminal window vertically (making it bigger). Then start typing. In many cases (I'm not exactly sure when) the current line will snap to somewhere in the middle of the window. It appears to be jumping to the bottom of the previous window position. Once a few commands are run and more output is printed it allows itself to go to the bottom

Expected behavior

When I start typing it shouldn't scroll the text unless that is necessary to make the cursor visible. Currently the terminal's notion of "visible" seems to be based on the previous window size.

Actual behavior

The content of the window scrolls up. This is quite disconcerting, and means that less relevant information is displayed.

Originally created by @randomascii on GitHub (Mar 14, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: Yes 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! --> # Environment ```Microsoft Windows [Version 10.0.18362.719] Windows Terminal version (if applicable): Windows Terminal (Preview) Version: 0.9.433.0 Any other software? None applicable ``` # Steps to reproduce Run "dir" a few times to get a few hundred lines of output. Resize the terminal window vertically (making it bigger). Then start typing. In many cases (I'm not exactly sure when) the current line will snap to somewhere in the middle of the window. It appears to be jumping to the bottom of the previous window position. Once a few commands are run and more output is printed it allows itself to go to the bottom # Expected behavior When I start typing it shouldn't scroll the text unless that is necessary to make the cursor visible. Currently the terminal's notion of "visible" seems to be based on the previous window size. # Actual behavior The content of the window scrolls up. This is quite disconcerting, and means that less relevant information is displayed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6868