Skip to content

Commit

Permalink
Don't double echo 633 E
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Apr 17, 2024
1 parent 9d58ca6 commit aac6f9c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ if (Get-Module -Name PSReadLine) {
# OSC 633 ; E ; <CommandLine?> ; <Nonce?> ST
$Result = "$([char]0x1b)]633;E;"
$Result += $(__VSCode-Escape-Value $CommandLine)
# Only send the nonce if the OS is not Windows 10 as it seems to echo to the terminal
# sometimes
if ($IsWindows10 -eq $false) {
$Result += ";$Nonce"
}
$Result += "`a"
[Console]::Write($Result)

# Command executed
# OSC 633 ; C ST
Expand Down

0 comments on commit aac6f9c

Please sign in to comment.