File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/vs/workbench/contrib/terminal/browser/media Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -62,10 +62,11 @@ __vsc_escape_value() {
62
62
# However, the result is a sign-extended int, so a high bit like 0xD7 becomes 0xFFF…FD7
63
63
# We mask that word with 0xFF to get lowest 8 bits, and then encode that byte as "\xD7" per our escaping scheme.
64
64
builtin printf -v token ' \\x%02X' " $(( $(builtin printf '0 x% X' "'$byte '") & 0xFF )) "
65
- # └──┬──┘ └┬┘└┬─┘ └─┬──┘ └──┬──┘ └───┬──┘
66
- # store in "token" ─╯ │ │ the hex value ───────────╯ │ │
67
- # the '\x…'-prefixed ─────╯ │ of the byte as an integer ────────╯ │
68
- # 0-padded, two hex digits ──╯ masked to one byte (due to sign extension) ─╯
65
+ # |________| ^^^ ^^^ ^^^^^^ ^^^^^^^ |______|
66
+ # | | | | | |
67
+ # store in `token` -+ | | the hex value -----------+ | |
68
+ # the '\x…'-prefixed -----+ | of the byte as an integer --------+ |
69
+ # 0-padded, two hex digits --+ masked to one byte (due to sign extension) -+
69
70
fi
70
71
71
72
out+=" $token "
You can’t perform that action at this time.
0 commit comments