Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put the terminal into quiet mode when drawing a plot. #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/KittyTerminalImages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down