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

Closed
opened 2026-01-31 03:17:24 +00:00 by claunia · 4 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.
Author
Owner

@DHowett commented on GitHub (Feb 11, 2021):

Do you have any set lines or set columns directives in your vimrc?

@DHowett commented on GitHub (Feb 11, 2021): Do you have any `set lines` or `set columns` directives in your vimrc?
Author
Owner

@noncomputable commented on GitHub (Feb 12, 2021):

Do you have any set lines or set columns directives in your vimrc?

Nope

@noncomputable commented on GitHub (Feb 12, 2021): > > > Do you have any `set lines` or `set columns` directives in your vimrc? Nope
Author
Owner

@DHowett commented on GitHub (Jul 2, 2021):

Sorry for the delay here.

What version of Vim are you using? Does this still reproduce with the latest Preview?

@DHowett commented on GitHub (Jul 2, 2021): Sorry for the delay here. What version of Vim are you using? Does this still reproduce with the latest Preview?
Author
Owner

@ghost commented on GitHub (Jul 6, 2021):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Jul 6, 2021): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12505