Skip to content

Commit

Permalink
consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Feb 4, 2023
1 parent ef90596 commit 7ba7c46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Contour = "0.5 - 0.6"
Crayons = "^4.1"
FileIO = "1"
FreeType = "4"
ImageInTerminal = "0.5"
MarchingCubes = "0.1"
NaNMath = "0.3, 1"
Requires = "1"
Expand Down
6 changes: 5 additions & 1 deletion ext/ImageInTerminalExt.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
module ImageInTerminalExt

import UnicodePlots
isdefined(Base, :get_extension) ? (import ImageInTerminal) : (import ..ImageInTerminal)
@static if isdefined(Base, :get_extension)
import ImageInTerminal
else
import ..ImageInTerminal
end
using ColorTypes

UnicodePlots.sixel_encode(args...; kw...) = ImageInTerminal.sixel_encode(args...; kw...)
Expand Down

0 comments on commit 7ba7c46

Please sign in to comment.