Skip to content

Commit 3cf68ee

Browse files
committed
drop ImageInTerminal - use XTermColors
1 parent 05af5ad commit 3cf68ee

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ DeepDiffs = "ab62b9b5-e342-54a8-a765-a90f495de1a6"
99
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
1010
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
1111
ImageCore = "a09fc81d-aa75-5fe9-8630-4744c3626534"
12-
ImageInTerminal = "d8c32880-2388-543b-8c61-d9f865259254"
1312
LazyModules = "8cdb02fc-e678-4876-92c5-9defec4f444e"
1413
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1514
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
1615
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
16+
XTermColors = "c8c2cc18-de81-4e68-b407-38a3a0c0491f"
1717

1818
[compat]
1919
BSON = "0.3"
@@ -25,12 +25,12 @@ Distances = "0.7, 0.8, 0.9, 0.10"
2525
FileIO = "1"
2626
GR = "= 0.50.1"
2727
ImageCore = "0.8.1, 0.9"
28-
ImageInTerminal = "0.5"
2928
ImageMagick = "0.7, 1"
3029
ImageTransformations = "0.8"
3130
LazyModules = "0.3"
3231
Plots = "= 1.4.3"
3332
TestImages = "0.6, 1"
33+
XTermColors = "0.2"
3434
julia = "1"
3535

3636
[extras]

src/ReferenceTests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using Colors
77
using Distances
88
using FileIO
99
@lazy import ImageCore = "a09fc81d-aa75-5fe9-8630-4744c3626534"
10-
@lazy import ImageInTerminal = "d8c32880-2388-543b-8c61-d9f865259254"
10+
@lazy import XTermColors = "c8c2cc18-de81-4e68-b407-38a3a0c0491f"
1111
using SHA
1212
using DeepDiffs
1313
using Random

src/fileio.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ function _convert(
5656
size = (20,40), kw...)
5757

5858
# encode image into string
59-
strs = @withcolor ImageInTerminal.ascii_show(
59+
strs = @withcolor XTermColors.ascii_show(
6060
img,
61-
ImageInTerminal.TermColor8bit(),
61+
XTermColors.TermColor8bit(),
6262
:small,
6363
size
6464
)

src/render.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ function render_item(::BeforeAfterLimited, item)
1515
println()
1616
end
1717
function render_item(::BeforeAfterImage, item)
18-
str_item = @withcolor ImageInTerminal.ascii_show(
18+
str_item = @withcolor XTermColors.ascii_show(
1919
item,
20-
ImageInTerminal.TermColor8bit(),
20+
XTermColors.TermColor8bit(),
2121
:small,
2222
(20, 40)
2323
)

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ambs = detect_ambiguities(ReferenceTests, Base, Core)
1919
# to properly test world age issues, the full test dependencies must be loaded later
2020
include("test_no_world_age_issues.jl")
2121

22-
using ImageInTerminal, TestImages, ImageCore, ImageTransformations
22+
using XTermColors, TestImages, ImageCore, ImageTransformations
2323
using Plots
2424

2525
strip_summary(content::String) = join(split(content, "\n")[2:end], "\n")
@@ -85,7 +85,7 @@ end
8585
@test_reference "references/string1.nottxt" "This is not a .txt file, but it should be treated as such.\n"
8686
end
8787

88-
@testset "images as txt using ImageInTerminal" begin
88+
@testset "images as txt using XTermColors" begin
8989
#@test_throws MethodError @test_reference "references/fail.txt" rand(2,2)
9090

9191
@test_reference "references/camera.txt" camera size=(5,10)

0 commit comments

Comments
 (0)