microsoft/Terminal

Allow a command line argument for wt that would accept a monitor designation

Open

#15,656 建立於 2023年7月5日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)C++ (3,212 fork)batch import
Area-CommandlineHelp WantedIssue-BugProduct-Terminal

倉庫指標

Star
 (35,764 star)
PR 合併指標
 (平均合併 27天 19小時) (30 天內合併 24 個 PR)

描述

Description of the new feature/enhancement

I have not found a way to cause a new invocation of wt to position its window onto the monitor of my choice.

Things I have tried:

  1. Manually drag the wt window to my chosen monitor. Close it and start a new wt instance. Other windows respect the Windows settings (System->Display) 'Remember window locations based on monitor connection'. But the wt window does not appear to honor that.
  2. For 'wt --pos <x,y>', set x and y to various values. This works, but only puts the window on the 'main display' monitor. Note that for giggles, I tried negative numbers and this caused the window to appear on the other(not main) display monitor, but always at position <0,0>.

Proposed technical implementation details (optional)

Suggestions for possible implementation: *) Allow another command line arg, perhaps similar to the Linux '--display'. *) Allow the current <x,y> args of --pos to include an optional monitor number, such as <1:100,100> *) Honor, the 'Remember window locations based on monitor connection' setting. BUT, allow --pos to override that.

貢獻者指南