From a3777694fdfc5f979cc322477e1c7ed9d480ae70 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 24 Nov 2025 10:18:43 +0530 Subject: [PATCH] POSIX printf doesnt support \e --- docs/graphics-protocol.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/graphics-protocol.rst b/docs/graphics-protocol.rst index 2f68e2667..3b25224c7 100644 --- a/docs/graphics-protocol.rst +++ b/docs/graphics-protocol.rst @@ -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"