Something like "unfocusedAppearance" but for when the process is dead / no longer running + reportCommandStart option #22831

Closed
opened 2026-01-31 08:24:45 +00:00 by claunia · 3 comments
Owner

Originally created by @hi2u on GitHub (Feb 1, 2025).

Prior work: unfocusedAppearance

I really love the unfocusedAppearance override that lets us set different styling for windows that aren't focused. Really useful when you have lots of monitors. This feature alone means I have little interest in switching to any other alternative terminal program that didn't have this.

Same as above, but for: process running state

I also use the closeOnExit: "never" setting in most of my profiles, which means that my terminal windows can be either in:

  • State A) The normal running state
  • State B) Between executions, i.e. when I'm still sitting at the prompt below (and haven't hit Enter yet):
[process exited with code 0 (0x00000000)]
You can now close this terminal with Ctrl+D, or press Enter to restart.

It would be awesome if a clone of same styling override object like unfocusedAppearance could also be defined for state B above, so it's super obvious at a glance which terminals aren't actually running their profile.commandline process right now.

It could be named deadProcessAppearance or something like that.

It would be especially handy when your process has a long startup time, i.e. you've hit Enter to restart it, but maybe it hasn't displayed anything yet, or it just doesn't do a lot of output in general. I find that for these types of processes, I'm often sitting here wondering if I did actually hit Enter yet (or pressed it too softly, or another window was focused etc), so I end up mashing the Enter key like 3 times to be sure, haha.

Bonus idea: reportCommandStart

Additionally, related to these types of use cases:

It would also be nice if there were a boolean toggle setting per-profile called something like reportCommandStart?: boolean, where if set to true... would immediately echo a line like Running: ${profile.commandline} as soon as I hit Enter.

Or better yet, make the option a string such as: reportCommandStartPrefix?: string so you can specify your own alternative to Running:

Originally created by @hi2u on GitHub (Feb 1, 2025). ### Prior work: `unfocusedAppearance` I really love the [`unfocusedAppearance`](https://learn.microsoft.com/en-us/windows/terminal/customize-settings/profile-appearance#unfocused-appearance-settings) override that lets us set different styling for windows that aren't focused. Really useful when you have lots of monitors. This feature alone means I have little interest in switching to any other alternative terminal program that didn't have this. ### Same as above, but for: process running state I also use the [`closeOnExit: "never"`](https://learn.microsoft.com/en-us/windows/terminal/customize-settings/profile-advanced#profile-termination-behavior) setting in most of my profiles, which means that my terminal windows can be either in: * State A) The normal running state * State B) Between executions, i.e. when I'm still sitting at the prompt below (and haven't hit Enter yet): ``` [process exited with code 0 (0x00000000)] You can now close this terminal with Ctrl+D, or press Enter to restart. ``` It would be awesome if a clone of same styling override object like [`unfocusedAppearance`](https://learn.microsoft.com/en-us/windows/terminal/customize-settings/profile-appearance#unfocused-appearance-settings) could also be defined for state B above, so it's super obvious at a glance which terminals aren't actually running their `profile.commandline` process right now. It could be named `deadProcessAppearance` or something like that. It would be especially handy when your process has a long startup time, i.e. you've hit Enter to restart it, but maybe it hasn't displayed anything yet, or it just doesn't do a lot of output in general. I find that for these types of processes, I'm often sitting here wondering if I did actually hit Enter yet (or pressed it too softly, or another window was focused etc), so I end up mashing the Enter key like 3 times to be sure, haha. ### Bonus idea: `reportCommandStart` Additionally, related to these types of use cases: It would also be nice if there were a boolean toggle setting per-profile called something like `reportCommandStart?: boolean`, where if set to `true`... would immediately echo a line like `Running: ${profile.commandline}` as soon as I hit Enter. Or better yet, make the option a string such as: `reportCommandStartPrefix?: string` so you can specify your own alternative to `Running: `
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 08:24:45 +00:00
Author
Owner

@carlos-zamora commented on GitHub (Feb 5, 2025):

Thanks for filing! This is related to several other issues (i.e. #11111) where users want customizations for different states of the Terminal. A consistent problem we've been running into is that we need a way to resolve combined states (i.e. admin session that is unfocused).

We're going to mark this as a /duplicate of #17780 as we're tracking the idea of customizing sessions that are terminated there.

@carlos-zamora commented on GitHub (Feb 5, 2025): Thanks for filing! This is related to several other issues (i.e. #11111) where users want customizations for different states of the Terminal. A consistent problem we've been running into is that we need a way to resolve combined states (i.e. admin session that is unfocused). We're going to mark this as a /duplicate of #17780 as we're tracking the idea of customizing sessions that are terminated there.
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Feb 5, 2025):

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!

@microsoft-github-policy-service[bot] commented on GitHub (Feb 5, 2025): 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! <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Author
Owner

@hi2u commented on GitHub (Feb 6, 2025):

@carlos-zamora thanks, yeah I can understand the multiplier factor complicating things.

I've written a comment here with my idea for that.

@hi2u commented on GitHub (Feb 6, 2025): @carlos-zamora thanks, yeah I can understand the multiplier factor complicating things. [I've written a comment here with my idea for that.](https://github.com/microsoft/terminal/issues/17780#issuecomment-2638366587)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22831