From 6df763c30f047559508602431e719fb665a4c4b4 Mon Sep 17 00:00:00 2001 From: Peter Pieske <71228733+piechologist@users.noreply.github.com> Date: Tue, 29 Oct 2024 11:50:26 +0100 Subject: [PATCH] Put the terminal into quiet mode. Added parameter `q=1` to the draw requests. The terminal won't respond with an escape sequence that we don't read anyway. --- src/KittyTerminalImages.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/KittyTerminalImages.jl b/src/KittyTerminalImages.jl index 6851b28..780ce53 100644 --- a/src/KittyTerminalImages.jl +++ b/src/KittyTerminalImages.jl @@ -33,7 +33,7 @@ function draw_temp_file(img) close(io) payload = transcode(UInt8, base64encode(path)) - write_kitty_image_escape_sequence(stdout, payload, f=100, t='t', X=1, Y=1, a='T') + write_kitty_image_escape_sequence(stdout, payload, f=100, t='t', X=1, Y=1, a='T', q=1) end function draw_direct(img) @@ -52,7 +52,7 @@ function draw_direct(img) m = (i == length(partitions)) ? 0 : 1 # 0 if this is the last data chunk if i == 1 - write_kitty_image_escape_sequence(buff, payload, f=32, s=width, v=height, X=1, Y=1, a='T', o='z', m=m) + write_kitty_image_escape_sequence(buff, payload, f=32, s=width, v=height, X=1, Y=1, a='T', o='z', q=1, m=m) else write_kitty_image_escape_sequence(buff, payload, m=m) end