Skip to content

Commit

Permalink
set is_sixel_supported false for non-tty types
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnychen94 committed May 10, 2021
1 parent 45a7ec3 commit 0b7ad0b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/frontend/fileio.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using FileIO

# function fileio_load(f::File{format"SIXEL"})
# open(f) do io
# sixel_decode(io)
# end
# end

function fileio_save(f::File{format"SIXEL"}, img::AbstractArray, enc::SEC=default_encoder(img); kwargs...)
open(f) do io
sixel_encode(io, img, enc; kwargs...)
end
end

0 comments on commit 0b7ad0b

Please sign in to comment.