From f80cf12092edb1bed8b7972bc1b9d63c836a9be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Wed, 12 Oct 2022 10:49:44 +0200 Subject: [PATCH] fix: fix OSC 8 hyperlink escape sequences --- tools/install.sh | 2 +- tools/upgrade.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/install.sh b/tools/install.sh index 495ad2c11..bc3723050 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -185,7 +185,7 @@ supports_truecolor() { fmt_link() { # $1: text, $2: url, $3: fallback mode if supports_hyperlinks; then - printf '\033]8;;%s\a%s\033]8;;\a\n' "$2" "$1" + printf '\033]8;;%s\033\\%s\033]8;;\033\\\n' "$2" "$1" return fi diff --git a/tools/upgrade.sh b/tools/upgrade.sh index afc6a98dd..2f3b4dae3 100755 --- a/tools/upgrade.sh +++ b/tools/upgrade.sh @@ -107,7 +107,7 @@ supports_truecolor() { fmt_link() { # $1: text, $2: url, $3: fallback mode if supports_hyperlinks; then - printf '\033]8;;%s\a%s\033]8;;\a\n' "$2" "$1" + printf '\033]8;;%s\033\\%s\033]8;;\033\\\n' "$2" "$1" return fi