mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 16:28:19 +02:00
Workaround for base64 on linux inserting line breaks by default
This commit is contained in:
@@ -13,7 +13,7 @@ args=($@)
|
|||||||
|
|
||||||
function debug() {
|
function debug() {
|
||||||
# print a line to STDOUT of parent kitty process
|
# 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"
|
printf "\eP@kitty-print|%s\e\\" "$b"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user