Skip to content

Commit 3a5c642

Browse files
committed
shellIntegration.fish: consistent use of escape codes
Note that '\x3b' ⇔ '\\x3b', since fish does not recognize '\x' as a known escape: however since a literal backslash is intended, it's clearer to write it explicitly.
1 parent 859f16a commit 3a5c642

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/workbench/contrib/terminal/browser/media/shellIntegration.fish

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ set --global VSCODE_SHELL_INTEGRATION 1
2424

2525
# Helper function
2626
function __vsc_esc -d "Emit escape sequences for VS Code shell integration"
27-
builtin printf "\e]633;%s\007" (string join ";" $argv)
27+
builtin printf "\e]633;%s\a" (string join ";" $argv)
2828
end
2929

3030
# Sent right before executing an interactive command.
@@ -44,8 +44,8 @@ function __vsc_escape_cmd
4444
# `string replace` automatically breaks its input apart on any newlines.
4545
# Then `string join` at the end will bring it all back together.
4646
string replace --all '\\' '\\\\' $commandline \
47-
| string replace --all ';' '\x3b' \
48-
| string join '\x0a'
47+
| string replace --all ';' '\\x3b' \
48+
| string join '\\x0a'
4949
end
5050
5151
# Sent right after an interactive command has finished executing.

0 commit comments

Comments
 (0)