How to stop scrolling when cursor is at the bottom of the screen and the console shrinks #5856

Open
opened 2026-01-31 00:23:32 +00:00 by claunia · 0 comments
Owner

Originally created by @joaobzrr on GitHub (Jan 11, 2020).

I'm running into a situation where, when the the cursor is positioned at the bottom of the screen and the user decreases the size of the console window by resizing it, the console will automatically scroll down to keep the cursor within the screen which makes the contents of the screen change. The application will then notice than the console has resized and will move the cursor to the first row in order to update the screen for the new console size, but because previously the screen was scrolled, moving the cursor to the top row will trigger another scroll which again will update the contents of screen. After this the application updates the screen to reflect the new console size. The unintended effect of all this is that the screen is updated three times instead of only once after the console is resized. Is there a way I can avoid this?

Originally created by @joaobzrr on GitHub (Jan 11, 2020). I'm running into a situation where, when the the cursor is positioned at the bottom of the screen and the user decreases the size of the console window by resizing it, the console will automatically scroll down to keep the cursor within the screen which makes the contents of the screen change. The application will then notice than the console has resized and will move the cursor to the first row in order to update the screen for the new console size, but because previously the screen was scrolled, moving the cursor to the top row will trigger another scroll which again will update the contents of screen. After this the application updates the screen to reflect the new console size. The unintended effect of all this is that the screen is updated three times instead of only once after the console is resized. Is there a way I can avoid this?
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 00:23:32 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5856