microsoft / microsoft/terminal

Preserve Last Known Window Position When Showing/Hiding Terminal

Open
#18,876 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Feature Needs-Attention Needs-Tag-Fix Needs-Triage
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Description of the new feature

I would like to suggest adding the ability to preserve the window position of the terminal before it is closed or hidden, so that when reopened using hotkeys, it appears in exactly the same screen location where it was previously opened. Currently, upon re-opening with a hotkey, the terminal window automatically displays on the monitor which currently has input focus, making it inconvenient while working with applications that heavily rely on console output for debugging or monitoring processes.

An ideal solution would be an option allowing users to choose whether the terminal should remain at its original position or switch between monitors based on current input focus.

### Proposed technical implementation details

_No response_

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

Start by tracing the terminal window's hide, close, and hotkey reopen behavior in the C++ codebase; the issue does not name specific files or tests. Done means the terminal can preserve its last window position when reopened, with an option to instead use the monitor with input focus.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, desktop
Issue type
Feature
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.