Windows Terminal Resize - increase size - no longer renders correctly #15091

Open
opened 2026-01-31 04:28:22 +00:00 by claunia · 5 comments
Owner

Originally created by @marcusobrien on GitHub (Sep 5, 2021).

Windows Terminal version (or Windows build number)

Version 10.0.19043.1165

Other Software

Windows Terminal
Version: 1.9.1942.0

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Dec 12 2019 13:19:27)
MS-Windows 32-bit console version
Compiled by mool@tororo
Huge version without GUI.

Steps to reproduce

  1. Open windows terminal
  2. Open cmd.exe
  3. edit file with vim for example c:\Windows\system32> vim mytest.txt
  4. Resize window in VIM to make it bigger in height - drag bottom of window down
  5. In Vim close the file being edited, so colon and q then return eg :q
  6. Now window is drawn wrong - still shows Vim file that was being edited
  7. If I try and clear the screen with the cls cmd command, it clears all the window apart from the extra part that was extended when editing in vim
  8. The resize event in VIM has not been passed on to the size variable that is being used to clear the screen - so the clear screen only clears the original size of the screen - before resizing

Expected Behavior

Entire window should be cleared when using cls command

Actual Behavior

Only original size of window is cleared when cls the screen

Originally created by @marcusobrien on GitHub (Sep 5, 2021). ### Windows Terminal version (or Windows build number) Version 10.0.19043.1165 ### Other Software Windows Terminal Version: 1.9.1942.0 VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Dec 12 2019 13:19:27) MS-Windows 32-bit console version Compiled by mool@tororo Huge version without GUI. ### Steps to reproduce 1. Open windows terminal 2. Open cmd.exe 3. edit file with vim for example c:\Windows\system32> vim mytest.txt 4. Resize window in VIM to make it bigger in height - drag bottom of window down 5. In Vim close the file being edited, so colon and q then return eg :q 6. Now window is drawn wrong - still shows Vim file that was being edited 7. 7. If I try and clear the screen with the cls cmd command, it clears all the window apart from the extra part that was extended when editing in vim 8. The resize event in VIM has not been passed on to the size variable that is being used to clear the screen - so the clear screen only clears the original size of the screen - before resizing ### Expected Behavior Entire window should be cleared when using cls command ### Actual Behavior Only original size of window is cleared when cls the screen
claunia added the Help WantedArea-OutputIssue-BugProduct-ConptyPriority-2 labels 2026-01-31 04:28:22 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Sep 8, 2021):

Huh. Good catch.

@zadjii-msft commented on GitHub (Sep 8, 2021): Huh. Good catch.
Author
Owner

@leimath commented on GitHub (Jun 8, 2022):

Is this related to https://github.com/microsoft/terminal/issues/13184 ? It reads like so.

@leimath commented on GitHub (Jun 8, 2022): Is this related to https://github.com/microsoft/terminal/issues/13184 ? It reads like so.
Author
Owner

@zadjii-msft commented on GitHub (Jun 20, 2022):

This might also be tracked in #202, haven't really debugged down to the root cause. It's not fixed by the alt buffer work that went in 1.14, since vim.exe doesn't use that.

@zadjii-msft commented on GitHub (Jun 20, 2022): This might also be tracked in #202, haven't really debugged down to the root cause. It's not fixed by the alt buffer work that went in 1.14, since vim.exe doesn't use that.
Author
Owner

@dragosPra commented on GitHub (Aug 6, 2022):

Any updates here? Sometimes when moving the terminal window from one screen to another, it just shuts down or displayed console is no longer operable.

@dragosPra commented on GitHub (Aug 6, 2022): Any updates here? Sometimes when moving the terminal window from one screen to another, it just shuts down or displayed console is no longer operable.
Author
Owner

@leimath commented on GitHub (Feb 28, 2024):

Was this fixed?

@leimath commented on GitHub (Feb 28, 2024): Was this fixed?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15091