mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
POSIX printf doesnt support \e
This commit is contained in:
parent
0d78490cc8
commit
a3777694fd
1 changed files with 3 additions and 3 deletions
|
|
@ -188,12 +188,12 @@ features of the graphics protocol:
|
|||
fi
|
||||
first="y"
|
||||
base64 "$base64_flag" 4096 "$1" | while IFS= read -r chunk; do
|
||||
printf "\e_G"
|
||||
printf "\033_G"
|
||||
[ $first = "y" ] && printf "a=T,f=100,"
|
||||
first="n"
|
||||
printf "m=1;%s\a" "${chunk}"
|
||||
printf "m=1;%s\033\\" "${chunk}"
|
||||
done
|
||||
printf "\e_Gm=0;\a"
|
||||
printf "\033_Gm=0;\033\\"
|
||||
}
|
||||
|
||||
transmit_png "$1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue