wt command should by default background itself (detach) when opening a new window #6524

Closed
opened 2026-01-31 00:40:51 +00:00 by claunia · 2 comments
Owner

Originally created by @sgsthor on GitHub (Feb 19, 2020).

wt command should by default background itself (detach) when opening a new window

When the user types into a window "wt -- ssh user@host" it will open up a new window. In the current implementation, it will also leave the original window blocked until the child window is closed.

Proposed technical implementation details (optional)

A default action of backgrounding (or simply forking and exiting the parent process) would leave the parent shell available for use. Not backgrounding/forking blocks the shell and is (unless you are waiting for the exit code of the child) both an abuse of resources and clutter/messy.

IFF the user explicitly wants to wait for the exit code, there should be a command-line switch for enabling that.

Originally created by @sgsthor on GitHub (Feb 19, 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! --> # wt command should by default background itself (detach) when opening a new window When the user types into a window "wt -- ssh user@host" it will open up a new window. In the current implementation, it will also leave the original window blocked until the child window is closed. # Proposed technical implementation details (optional) A default action of backgrounding (or simply forking and exiting the parent process) would leave the parent shell available for use. Not backgrounding/forking blocks the shell and is (unless you are waiting for the exit code of the child) both an abuse of resources and clutter/messy. IFF the user explicitly wants to wait for the exit code, there should be a command-line switch for enabling that.
Author
Owner

@DHowett-MSFT commented on GitHub (Feb 19, 2020):

Not backgrounding/forking blocks the shell and is both an abuse of resources and clutter/messy.

It is also a bug, albeit one in powershell: https://github.com/PowerShell/PowerShell/issues/9970

@DHowett-MSFT commented on GitHub (Feb 19, 2020): > Not backgrounding/forking blocks the shell and is both an abuse of resources and clutter/messy. It is also a bug, albeit one in powershell: https://github.com/PowerShell/PowerShell/issues/9970
Author
Owner

@ghost commented on GitHub (Jul 22, 2020):

:tada:This issue was addressed in #6860, which has now been successfully released as Windows Terminal Preview v1.2.2022.0.🎉

Handy links:

@ghost commented on GitHub (Jul 22, 2020): :tada:This issue was addressed in #6860, which has now been successfully released as `Windows Terminal Preview v1.2.2022.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.2.2022.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6524