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

Support shell integration in Windows PowerShell #167023

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

andyleejordan
Copy link
Member

By replacing backtick-e with $([char]0x1b), we allow shell integration to work with Windows PowerShell, as the only problem seemed to be use of backtick-e, which was an escape character added only to PowerShell Core, but the [char] equivalent works fine.

I built and tested this on Windows and it sure seems fine!

Screenshot 2022-11-22 at 4 58 36 PM

Screenshot 2022-11-22 at 4 59 00 PM

/cc @Tyriar

By replacing `e with $([char]0x1b), we allow shell integration to work
with Windows PowerShell, as the only problem seemed to be use of `e,
which was an escape character added only to PowerShell Core, but the
`[char]` equivalent works fine.
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome 👏

@Tyriar Tyriar merged commit 45b5568 into microsoft:main Nov 23, 2022
@andyleejordan andyleejordan deleted the andschwa/escape-char branch November 23, 2022 17:57
@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants