Ubuntu's Vim rerenders text permanetly to Windows Terminal after scrolling #8852

Closed
opened 2026-01-31 01:39:35 +00:00 by claunia · 4 comments
Owner

Originally created by @hgulino on GitHub (Jun 5, 2020).

Environment

Windows build number: Version 10.0.19041.264
Windows Terminal version (if applicable): Version: 1.0.1401.0

Any other software?
Ubuntu 20.04 LTS

Steps to reproduce

  1. Open Ubuntu Bash
  2. Enter vimtutor
  3. Enter 100 j
    (Checking side of Windows Terminal shows the scroll bar has now altered position)
  4. Scroll up to see copied output from Vim

Expected behavior

Opening the same file within the default Windows cmd shell runs correctly and doesn't print additional lines to the console.

Actual behavior

Vim's rendered text from scrolling isn't outputted to the console after being closed or scrolled through.

Screenshot_1

Originally created by @hgulino on GitHub (Jun 5, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Version 10.0.19041.264 Windows Terminal version (if applicable): Version: 1.0.1401.0 Any other software? Ubuntu 20.04 LTS ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> 1. Open Ubuntu Bash 2. Enter `vimtutor` 3. Enter `100 j` _(Checking side of Windows Terminal shows the scroll bar has now altered position)_ 4. Scroll up to see copied output from Vim # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> Opening the same file within the default Windows cmd shell runs correctly and doesn't print additional lines to the console. # Actual behavior <!-- What's actually happening? --> Vim's rendered text from scrolling isn't outputted to the console after being closed or scrolled through. ![Screenshot_1](https://user-images.githubusercontent.com/47267453/83928304-2b0b5880-a744-11ea-9b79-45fa64a19356.png)
claunia added the Resolution-Duplicate label 2026-01-31 01:39:35 +00:00
Author
Owner

@skyline75489 commented on GitHub (Jun 8, 2020):

Originally I was gonna say this is expected since the scrolling is supposed to happen in the perspective of text buffer. Then I checked iTerm2. It behaves differently in a way that I can not describe. It's better but still not perfect.

Still, scrolling with scroll bar is supposed to be different than scrolling with Ctrl+F and Ctrl+B. I think this is the common ground we share, right?

@skyline75489 commented on GitHub (Jun 8, 2020): Originally I was gonna say this is expected since the scrolling is supposed to happen in the perspective of text buffer. Then I checked iTerm2. It behaves differently in a way that I can not describe. It's better but still not perfect. Still, scrolling with scroll bar is supposed to be different than scrolling with `Ctrl+F` and `Ctrl+B`. I think this is the common ground we share, right?
Author
Owner

@zadjii-msft commented on GitHub (Jun 8, 2020):

This is probably #381 - vim is using the alt buffer, which doesn't have a scrollback, but ConPTY doesn't quite yet inform the terminal that vim has requested that, so the Terminal is just letting output from vim scroll into the scrollback

@zadjii-msft commented on GitHub (Jun 8, 2020): This is probably #381 - `vim` is using the alt buffer, which doesn't have a scrollback, but ConPTY doesn't quite yet inform the terminal that vim has requested that, so the Terminal is just letting output from vim scroll into the scrollback
Author
Owner

@DHowett commented on GitHub (Jun 10, 2020):

Yep, looking at it this is a /dupe of #381. Sorry!

@DHowett commented on GitHub (Jun 10, 2020): Yep, looking at it this is a /dupe of #381. Sorry!
Author
Owner

@ghost commented on GitHub (Jun 10, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jun 10, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8852