microsoft / microsoft/terminal
Un-snapping Terminal Placing Cursor in Middle of Previous Command's Output
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
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
- Snap terminal to the right
- (In PS7) Type a command that fills the screen (I used
dotnet new --listbecause I'm checking my installed templates)

- Unsnap the pane (whether by dragging, maximizing, or double tapping title bar)
- 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).
Actual behavior
Terminal is currently displaying the text in the middle of the previous commands output.

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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in Windows Terminal by snapping and then unsnapping the window after a command fills the screen, using the listed PowerShell Core 7 setup and reproduction steps. Compare the cursor position with the expected and actual screenshots; done means new input appears at the prompt rather than in the previous command's output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, powershell
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100