Skip to content
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

"Open in new window" needs an option to hold the window open #55

Open
alunmj opened this issue Feb 14, 2024 · 4 comments
Open

"Open in new window" needs an option to hold the window open #55

alunmj opened this issue Feb 14, 2024 · 4 comments
Labels
Issue-Feature New feature or request. Complex enough to require planning and actual budgeted, scheduled work.
Milestone

Comments

@alunmj
Copy link

alunmj commented Feb 14, 2024

Description of the new feature / enhancement

As shown in the video announcing the 'sudo' command, you can run "netstat -ab" to see all the listening sockets on your machine, but it'll go away as soon as it's shown you them.
It'd be nice to not close the window immediately on exiting the command.

Scenario when this would be used?

Many sudo commands, for sure, will be executed to perform an action.
Some, at least, will be executed to see a result.
Those result-seeking sudo commands are going to be more useful if a user can read the result.

Supporting information

I tried this in a virtual machine running Insider version of Windows 11. After prompting (expected) for UAC elevation, and running the "netstat -ab" command, the window closes.

@alunmj alunmj added Issue-Feature New feature or request. Complex enough to require planning and actual budgeted, scheduled work. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Feb 14, 2024
@luke-beep
Copy link

You can do this natively in Windows Terminal by going to Profiles -> Defaults (or your preferred profile) -> Advanced and then changing the Profile termination behavior to Never close automatically.

@joadoumie
Copy link
Collaborator

This is a really good point. It'd be nice to either have the option to keep the new window open OR by default just have it stay open and just exit on any key press.

@joadoumie joadoumie removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Feb 14, 2024
@joadoumie joadoumie added this to the 24H1 milestone Feb 21, 2024
@AvogatoWizardWhisker
Copy link

You can do this natively in Windows Terminal by going to Profiles -> Defaults (or your preferred profile) -> Advanced and then changing the Profile termination behavior to Never close automatically.

Despite that, the pwsh console window still closes when the process exits. This feature is not related to Windows Terminal at all.

@luke-beep
Copy link

You can do this natively in Windows Terminal by going to Profiles -> Defaults (or your preferred profile) -> Advanced and then changing the Profile termination behavior to Never close automatically.

Despite that, the pwsh console window still closes when the process exits. This feature is not related to Windows Terminal at all.

That wasn't my point. It was just an enlightening observation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature New feature or request. Complex enough to require planning and actual budgeted, scheduled work.
Projects
None yet
Development

No branches or pull requests

4 participants