Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Sep 16, 2022
1 parent c01c2ca commit 6354891
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/graphics/imagegraphics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ function preprocess!(io::IO, c::ImageGraphics)
else
ImageInTerminal.imshow(ctx, c.img)
lines_colors = readlines(ctx) # characters and ansi colors
re_bg_24bit = r"\e\[38;2;(\d+);(\d+);(\d+);48;2;(\d+);(\d+);(\d+)[\d;]*?m"
re_bg_8bit = r"\e\[38;5;(\d+);48;5;(\d+)[\d;]*?m"
re_fg_24bit = r"\e\[38;2;(\d+);(\d+);(\d+)[\d;]*?m"
re_fg_8bit = r"\e\[38;5;(\d+)[\d;]*?m"
re_bg_24bit = r"\e\[38;2;(\d+);(\d+);(\d+);48;2;(\d+);(\d+);(\d+)m"
re_bg_8bit = r"\e\[38;5;(\d+);48;5;(\d+)m"
re_fg_24bit = r"\e\[38;2;(\d+);(\d+);(\d+)m"
re_fg_8bit = r"\e\[38;5;(\d+)m"
line1 = first(lines_colors)
nc = line1 |> no_ansi_escape |> length
invalid = m -> INVALID_COLOR
Expand Down
2 changes: 1 addition & 1 deletion test/tst_imageplot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ img = testimage("monarch_color_256")
end

# experimental testing: see github.com/JuliaLang/Pkg.jl/pull/3186
# must launched with `Pkg.test("UnicodePlots"; forward_stdin=true)` on `1.8`+
# must be launched with `Pkg.test("UnicodePlots"; forward_stdin=true)` on `1.8`+
if ImageInTerminal.Sixel.is_sixel_supported()
@testset "sixel" begin
_old_enc = ImageInTerminal.ENCODER_BACKEND[]
Expand Down

0 comments on commit 6354891

Please sign in to comment.