Skip to content

Commit 4c1a5b8

Browse files
committed
disable encoding for unsupported windows platform
1 parent 918a728 commit 4c1a5b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ImageInTerminal.jl

+6
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ function __init__()
8787
# use 24bit if the terminal supports it
8888
lowercase(get(ENV, "COLORTERM", "")) in ("24bit", "truecolor") && use_24bit()
8989
enable_encoding()
90+
91+
if VERSION < v"1.6.0-DEV.888" && Sys.iswindows()
92+
# https://discourse.julialang.org/t/image-in-repl-does-not-correct/46359
93+
@warn "ImageInTerminal is not supported for Windows platform: Julia at least v1.6.0 is required."
94+
disable_encoding()
95+
end
9096
end
9197

9298
end # module

0 commit comments

Comments
 (0)