Skip to content

Support shell integration in Windows PowerShell - #167023

Merged
Daniel Imms (Tyriar) merged 1 commit into
microsoft:mainfrom
andyleejordan:andschwa/escape-char
Nov 23, 2022
Merged

Support shell integration in Windows PowerShell#167023
Daniel Imms (Tyriar) merged 1 commit into
microsoft:mainfrom
andyleejordan:andschwa/escape-char

Conversation

@andyleejordan

Copy link
Copy Markdown
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 Daniel Imms (@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.

@Tyriar Daniel Imms (Tyriar) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is awesome 👏

@Tyriar
Daniel Imms (Tyriar) merged commit 45b5568 into microsoft:main Nov 23, 2022
@andyleejordan
Andy Jordan (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