Workaround for base64 on linux inserting line breaks by default

This commit is contained in:
Kovid Goyal
2021-08-18 10:06:05 +05:30
parent 934318adb1
commit d1015de700
+1 -1
View File
@@ -13,7 +13,7 @@ args=($@)
function debug() {
# print a line to STDOUT of parent kitty process
local b=$(printf "%s\n" "$1" | base64)
local b=$(printf "%s\n" "$1" | base64 | tr -d \\n)
printf "\eP@kitty-print|%s\e\\" "$b"
}