Un-snapping Terminal Placing Cursor in Middle of Previous Command's Output #10100

Open
opened 2026-01-31 02:12:31 +00:00 by claunia · 4 comments
Owner

Originally created by @joshuacookdev on GitHub (Aug 12, 2020).

Environment

Windows build number: 10.0.19041.0
Windows Terminal version (if applicable): 1.1.2021.0

Any other software?
* PowerShell Core 7 (also reproducible in other shells)

Steps to reproduce

  1. Snap terminal to the right
  2. (In PS7) Type a command that fills the screen (I used dotnet new --list because I'm checking my installed templates)
    Step2
  3. Unsnap the pane (whether by dragging, maximizing, or double tapping title bar)
  4. Type new command (I used cd to a path I was working within)

Expected behavior

Terminal should display the new input text at the > mark (seen here in stock PowerShell 7).
expectedBehavior

Actual behavior

Terminal is currently displaying the text in the middle of the previous commands output.
actualBehavior

I searched for snap and cursor and couldn't find this explicitly (I found a couple of related issues) - if duplicated or in progress please feel free to delete.

Originally created by @joshuacookdev on GitHub (Aug 12, 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: 10.0.19041.0 Windows Terminal version (if applicable): 1.1.2021.0 Any other software? * PowerShell Core 7 (also reproducible in other shells) ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> 1. Snap terminal to the right 2. (In PS7) Type a command that fills the screen (I used ```dotnet new --list``` because I'm checking my installed templates) ![Step2](https://user-images.githubusercontent.com/26214284/89965513-aab91600-dc12-11ea-84c6-141ad74b9d68.png) 3. Unsnap the pane (whether by dragging, maximizing, or double tapping title bar) 4. Type new command (I used cd to a path I was working within) # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> Terminal should display the new input text at the > mark (seen here in stock PowerShell 7). ![expectedBehavior](https://user-images.githubusercontent.com/26214284/89965583-c58b8a80-dc12-11ea-84cc-13b80fe526ef.PNG) # Actual behavior <!-- What's actually happening? --> Terminal is currently displaying the text in the middle of the previous commands output. ![actualBehavior](https://user-images.githubusercontent.com/26214284/89965596-cc1a0200-dc12-11ea-86ce-f1d21c5ba65d.png) I searched for snap and cursor and couldn't find this explicitly (I found a couple of related issues) - if duplicated or in progress please feel free to delete.
claunia added the Area-OutputIssue-BugProduct-TerminalPriority-2 labels 2026-01-31 02:12:32 +00:00
Author
Owner

@joshuacookdev commented on GitHub (Aug 12, 2020):

Looking at it now, it looks like it might be related to #3088 but I don't think it is explicitly the same, since the behavior isn't reproducible in conhost proper.

@joshuacookdev commented on GitHub (Aug 12, 2020): Looking at it now, it looks like it might be _related_ to #3088 but I don't _think_ it is explicitly the same, since the behavior isn't reproducible in conhost proper.
Author
Owner

@zadjii-msft commented on GitHub (Aug 12, 2020):

Yea, there's definitely still some sort of intermittent bug with line wrapping. I'm not sure how we get into that state, but it's fairly hard to pin down.

Generally, I'm tracking all these types of bugs over in #5800, so I'll link this report up with those. Thanks!

@zadjii-msft commented on GitHub (Aug 12, 2020): Yea, there's definitely still some sort of intermittent bug with line wrapping. I'm not sure how we get into that state, but it's fairly hard to pin down. Generally, I'm tracking all these types of bugs over in #5800, so I'll link this report up with those. Thanks!
Author
Owner

@SpiridonovAlexMoeDelo commented on GitHub (Nov 16, 2020):

Hi, folks!

Not sure if my issue related to this one but I have next definitely unexpected behavior:
terminal-bug

Requirements:

  1. Terminal have to be full of some text (not reproduced on empty terminal)

What to do:

  1. Get some command from history and try to edit command

What expects:

  1. Just editing without any surprises

What happens:

  1. Suddenly text of command are cloned

100% reproducing as shown on attached gif in very common using scenario.

@SpiridonovAlexMoeDelo commented on GitHub (Nov 16, 2020): Hi, folks! Not sure if my issue related to this one but I have next definitely unexpected behavior: ![terminal-bug](https://user-images.githubusercontent.com/15867626/99222366-75b0f680-27f3-11eb-9471-23d2043c6644.gif) Requirements: 1. Terminal have to be full of some text (not reproduced on empty terminal) What to do: 1. Get some command from history and try to edit command What expects: 1. Just editing without any surprises What happens: 1. Suddenly text of command are cloned 100% reproducing as shown on attached gif in very common using scenario.
Author
Owner

@zadjii-msft commented on GitHub (Nov 16, 2021):

note to self, from #11745:

  • open terminal
  • dotnet new blazorwasm --help
  • maximize

is a 100% repro

@zadjii-msft commented on GitHub (Nov 16, 2021): note to self, from #11745: * open terminal * `dotnet new blazorwasm --help` * maximize is a 100% repro
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10100