Skip to content

Enable Ctrl+C to work for global tool - #11959

Merged
Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
adityapatwardhan:FixGblTool
Feb 26, 2020
Merged

Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
adityapatwardhan:FixGblTool

Conversation

@adityapatwardhan

@adityapatwardhan Aditya Patwardhan (adityapatwardhan) commented Feb 26, 2020 •

Copy link
Copy Markdown
Member

Fixes #11314

PR Summary

Global tool shim layer should not handle Ctlr+C as it does compete with the launched global tool and makes the usage of console impossible.

PR Context

PR Checklist

@daxian-dbw

Copy link
Copy Markdown
Member

Aditya Patwardhan (@adityapatwardhan) A question: pwsh can still receive Ctrl+C after adding this handler in the shim layer, right?

@adityapatwardhan

Copy link
Copy Markdown
Member Author

Dongbo Wang (@daxian-dbw) Yes, pwsh still receives the ctlr+c

@adityapatwardhan Aditya Patwardhan (adityapatwardhan) changed the title Disable handling Ctlr C in the global tool shim Enable Ctrl+C to work for global tool Feb 26, 2020
@TravisEz13
Travis Plunk (TravisEz13) merged commit 4e89698 into PowerShell:master Feb 26, 2020
@DHowett-MSFT

Copy link
Copy Markdown

Thanks!

@adityapatwardhan Aditya Patwardhan (adityapatwardhan) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Mar 3, 2020
@ghost

Copy link
Copy Markdown

🎉v7.0.0 has been released which incorporates this pull request.:tada:

Handy links:

@brandedoutcast

Copy link
Copy Markdown

Dropping this here to let people know this might've also fixed microsoft/vscode#86459 & microsoft/terminal#1894

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pwsh as a dotnet global tool exhibits very unusual behavior with Ctrl-C

5 participants