Terminal doesn't resize buffer if historySize is set to 32740 or more #6717

Open
opened 2026-01-31 00:45:33 +00:00 by claunia · 0 comments
Owner

Originally created by @Kaznov on GitHub (Mar 3, 2020).

Environment

Windows build number: [Version 10.0.18363.657]
Windows Terminal version: 0.9.433.0

Steps to reproduce

  • add "historySize": 32740 to profile setting
  • restart the terminal
  • try resizing the window

Expected behavior

Lines wrapping and unwrapping as I change window width, going up one by one if i change the height.

Actual behavior

When I change width buffer size stays the same, and part of the text is hidden, stays beyond window/plane frame. When I change height so that the cursor would be hidden, instead of moving up why by one it immediately goes to the top line.

I understand that this is because of the use of short ints (why are short ints used though? some really old dependency?). I even quite like it, looking at how messed up resizing is right now. So it's my little "workaround". Still, I'd expect a warning, or at least a bound value in json schema.

Originally created by @Kaznov on GitHub (Mar 3, 2020). # Environment ```none Windows build number: [Version 10.0.18363.657] Windows Terminal version: 0.9.433.0 ``` # Steps to reproduce - add "historySize": 32740 to profile setting - restart the terminal - try resizing the window # Expected behavior Lines wrapping and unwrapping as I change window width, going up one by one if i change the height. # Actual behavior When I change width buffer size stays the same, and part of the text is hidden, stays beyond window/plane frame. When I change height so that the cursor would be hidden, instead of moving up why by one it immediately goes to the top line. I understand that this is because of the use of short ints (why are short ints used though? some really old dependency?). I even quite like it, looking at how messed up resizing is right now. So it's my little "workaround". Still, I'd expect a warning, or at least a bound value in json schema.
claunia added the Resolution-Duplicate label 2026-01-31 00:45:33 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6717