Skip to content

Support shell integration in Windows PowerShell#167023

Merged
Tyriar merged 1 commit intomicrosoft:mainfrom
andyleejordan:andschwa/escape-char
Nov 23, 2022
Merged

Support shell integration in Windows PowerShell#167023
Tyriar merged 1 commit intomicrosoft:mainfrom
andyleejordan:andschwa/escape-char

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
Contributor

@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