Bottom lines of terminal display blocked off after closing vim #12502

Open
opened 2026-01-31 03:17:21 +00:00 by claunia · 0 comments
Owner

Originally created by @noncomputable on GitHub (Feb 11, 2021).

Environment

Windows build number: Win32NT             10.0.19041.0 Microsoft Windows NT 10.0.19041.0
Windows Terminal version (if applicable): Preview
Profile: PowerShell

Any other software?

Steps to reproduce

  1. Open a file with vim: vim file.txt
  2. Close it: :q
  3. Enter any input to the terminal

Expected behavior

The terminal input prompt should appear on the line after vim was entered, and the next line after that should be the output to your input. Any lines after that should be blank.

Actual behavior

Your input is copied to the bottom line of the terminal, and the output is printed on the bottom lines before it. Then the new terminal input prompt appears on the line above the output. If I open any other program, these bottom lines are still blocked off, e.g. after opening a file with vim, the bottom lines of the screen will be the output of my last terminal command followed by the input I last gave to the terminal.

For example, running [Environment]::OSVersion (top line), fills the bottom as follows:
image

If I run clear, the bottom clears but is still unusable, and my next input/output into the terminal is again copied to those bottom lines.

Originally created by @noncomputable on GitHub (Feb 11, 2021). # Environment ```none Windows build number: Win32NT 10.0.19041.0 Microsoft Windows NT 10.0.19041.0 Windows Terminal version (if applicable): Preview Profile: PowerShell Any other software? ``` # Steps to reproduce 1. Open a file with vim: `vim file.txt` 2. Close it: `:q` 3. Enter any input to the terminal # Expected behavior The terminal input prompt should appear on the line after `vim` was entered, and the next line after that should be the output to your input. Any lines after that should be blank. # Actual behavior Your input is copied to the bottom line of the terminal, and the output is printed on the bottom lines before it. Then the new terminal input prompt appears on the line above the output. If I open any other program, these bottom lines are still blocked off, e.g. after opening a file with vim, the bottom lines of the screen will be the output of my last terminal command followed by the input I last gave to the terminal. For example, running `[Environment]::OSVersion` (top line), fills the bottom as follows: ![image](https://user-images.githubusercontent.com/12204924/107599906-1dba3e00-6bf0-11eb-8496-74c1be08a4d8.png) If I run `clear`, the bottom clears but is still unusable, and my next input/output into the terminal is again copied to those bottom lines.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12502