microsoft / microsoft/terminal

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

Open
#7,253 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Output Issue-Bug Priority-2 Product-Terminal
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

  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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.