-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dim terminal when app terminates #17780
Comments
Thanks for the request! For what it's worth... we have another visual indicator that the connection has been broken: We're not likely to prioritize the "appearance matrix" work required to support the combinations of {terminated/running, admin/non-admin, focused/unfocused} required to make this possible, so we're committing it to the distant distant backlog for now. |
and my stupid idea from triage:
|
what is "another visual indicator" ? the two lines of text? when using ssh and tmux they tend to appear anywhere on screen, hiding between whatever text happens to be on screen. it is not as clear as in the demo image you placed. |
Good point. It’s the (x) which appears to the left of the title. It’s visible in the tab. |
I posted a similar issue #18489 a few days ago, didn't find this one here at the time. @carlos-zamora's reply in #18489:
@DHowett's reply here:
Yeah fair enough, that could be over-complicating it. For each of these "binary states" we're doubling the total number of combined states for the whole program. And I don't think it should be dictated how the prioritization works anyway. Especially when there's the possibilities of having 3+ of these competing binary states... 3 binary states is already 8 combined states seeing we're doubling for each one... and maybe more will come in the future. People have their own priorities, and they might even have differing priorities amongst their own profiles. Maybe the simplest + most flexible solution would just to be to use an array. i.e. rather than OLD (what we have now){
"name": "My Profile Name",
"commandline": "the_command.exe",
"guid": "{23516c80-6c27-41ec-9049-4a56b1511a5d}",
"background": "#000000",
"unfocusedAppearance": {
"background": "#680909",
}
}, NEW{
"name": "My Profile Name",
"commandline": "the_command.exe",
"guid": "{23516c80-6c27-41ec-9049-4a56b1511a5d}",
"appearances": [
{
"type": "defaultAppearance",
"background": "#000000",
},
{
"type": "unfocusedAppearance",
"background": "#680909",
},
{
"type": "deadProcessAppearance",
"background": "#838996",
},
]
}, All of the currently applicable "binary states" in the "Last match wins" probably makes more sense to me seeing it's merging settings rather than doing a "hard stop" that only applies one of the states that ignores the rest that also apply. And you'll usually have "default" at the top, and you get more "niche" as you read downward. Pretty easy to read, and probably simpler to code too (JS example below). This would give users full flexibility for their own priorities, including when they differ for different profiles. And is pretty future-proof if more of these "binary states" are added later. Whether or not Shouldn't be too hard to code hopefully either? It's just looping through an array and overwriting applicable values in the final merged |
Moving a comment out of the triage thread
some keywords to find this thread faster next time: conditional appearance combinatorial appearances matrix focused admin unfocused dead connection theme light dark |
I have a profile which is used for SSH. When the connection is lost, I get a message saying the process has terminated and I am to press ENTER to restart. It's not always easy to spot this message, since it can appear at the top or middle of the screen (wherever the cursor happened to be). I propose that at this time (optionally) dim the entire window. This way it will be easier to notice the app termination and hit ENTER before continuing.
The text was updated successfully, but these errors were encountered: