microsoft / microsoft/sudo

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

Open
#55 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Feature
Dominant language
Rust
Stars
5.9k
Forks
180
Avg merge
1d 7h
Merged PRs (30d)
2

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior with the Windows 11 Insider scenario and the netstat -ab command, then locate the implementation of “Open in new window” and how it handles command exit. Done means an option lets users keep the window open after result-seeking commands finish while preserving the current behavior by default.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, operating-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.