Include active sub process in tab title. #7164

Closed
opened 2026-01-31 00:56:50 +00:00 by claunia · 3 comments
Owner

Originally created by @cpietrzykowski on GitHub (Mar 26, 2020).

Description of the new feature/enhancement

With cmd.exe (for example) the title of the window includes the active process (when it differs from the shell). This would be welcome for Windows Terminal, most notably when there are multiple active tabs per host.

Proposed technical implementation details (optional)

Either append the process name to the tab title, or provide some profile customisation formats to give the user some control over what/when the tab title is automatically updated to reflect shell activity.

When a non-trivial sub process is started (say if the task takes longer than a few hundred millseconds), append the process name to the tab title.

Some shells support dynamic prompts, but I don't think they're all consistent with how events are triggered. (understanding that not all processes would be visible to the host -- i.e. Powershell -> ssh -> vi; would only result in the tab title being "ssh".)

I'd be happy to take a stab at implementing this if a more seasoned maintainer could point me in the right direction.

Originally created by @cpietrzykowski on GitHub (Mar 26, 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! --> # Description of the new feature/enhancement With `cmd.exe` (for example) the title of the window includes the active process (when it differs from the shell). This would be welcome for `Windows Terminal`, most notably when there are multiple active tabs per host. <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) Either append the process name to the tab title, or provide some profile customisation formats to give the user some control over what/when the tab title is automatically updated to reflect shell activity. <!-- A clear and concise description of what you want to happen. --> When a non-trivial sub process is started (say if the task takes longer than a few hundred millseconds), append the process name to the tab title. Some shells support dynamic prompts, but I don't think they're all consistent with how events are triggered. (understanding that not all processes would be visible to the host -- i.e. Powershell -> ssh -> vi; would only result in the tab title being "ssh".) I'd be happy to take a stab at implementing this if a more seasoned maintainer could point me in the right direction.
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 00:56:50 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Mar 27, 2020):

Thanks for the request! I'd like for it to be part of the spec for #1320 -- we'll need to have a discussion about what we can do with our subprocess' token, and what makes sense to scrape to put in the title.

Mind moving future discussion for this feature over there?

Thanks!

/dup #1320

@DHowett-MSFT commented on GitHub (Mar 27, 2020): Thanks for the request! I'd like for it to be part of the spec for #1320 -- we'll need to have a discussion about what we can do with our subprocess' token, and what makes sense to scrape to put in the title. Mind moving future discussion for this feature over there? Thanks! /dup #1320
Author
Owner

@ghost commented on GitHub (Mar 27, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Mar 27, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@cpietrzykowski commented on GitHub (Mar 27, 2020):

Thanks for the request! I'd like for it to be part of the spec for #1320 -- we'll need to have a discussion about what we can do with our subprocess' token, and what makes sense to scrape to put in the title.

Mind moving future discussion for this feature over there?

Thanks!

/dup #1320

No problem at all -- I assure you I searched countless times looking for a dupe, trying all manner of search terms.

@cpietrzykowski commented on GitHub (Mar 27, 2020): > Thanks for the request! I'd like for it to be part of the spec for #1320 -- we'll need to have a discussion about what we can do with our subprocess' token, and what makes sense to scrape to put in the title. > > Mind moving future discussion for this feature over there? > > Thanks! > > /dup #1320 No problem at all -- I assure you I searched countless times looking for a dupe, trying all manner of search terms.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7164