terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Windows Terminal Resize - increase size - no longer renders correctly

Open marcusobrien opened this issue 4 years ago • 4 comments
trafficstars

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

marcusobrien avatar Sep 05 '21 01:09 marcusobrien

Huh. Good catch.

zadjii-msft avatar Sep 08 '21 10:09 zadjii-msft

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

leimath avatar Jun 08 '22 13:06 leimath

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 avatar Jun 20 '22 11:06 zadjii-msft

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 avatar Aug 06 '22 18:08 dragosPra

Was this fixed?

leimath avatar Feb 28 '24 11:02 leimath