diff --git a/ansi/go.mod b/ansi/go.mod index 155ae5d5..96c4af5e 100644 --- a/ansi/go.mod +++ b/ansi/go.mod @@ -6,7 +6,9 @@ require ( github.com/bits-and-blooms/bitset v1.20.0 github.com/lucasb-eyer/go-colorful v1.2.0 github.com/mattn/go-runewidth v0.0.16 - github.com/rivo/uniseg v0.4.7 github.com/mattn/go-sixel v0.0.5 //go:build benchthis - github.com/soniakeys/quant v1.0.0 //go:build benchthis + github.com/rivo/uniseg v0.4.7 + github.com/soniakeys/quant v1.0.0 // indirect; go:build benchthis ) + +require github.com/aymanbagabas/quant v0.0.0-20250220224823-9dea6ec382b5 diff --git a/ansi/go.sum b/ansi/go.sum index c65a4659..a51164f1 100644 --- a/ansi/go.sum +++ b/ansi/go.sum @@ -1,3 +1,7 @@ +github.com/aymanbagabas/quant v0.0.0-20250220211315-dbeb2d26bb3a h1:6ZhOQa8FgHVtSmBW20Nbn6uNA9y1EJjUTtCmL2pJoGI= +github.com/aymanbagabas/quant v0.0.0-20250220211315-dbeb2d26bb3a/go.mod h1:LZcbdMgqlAs77pcs8WZnQxNflVHNtzWWDDUJoBFC24A= +github.com/aymanbagabas/quant v0.0.0-20250220224823-9dea6ec382b5 h1:BQwkJD8W8jgJpvJgA3klNG5W4pyrU4wJ7LynWik+uYc= +github.com/aymanbagabas/quant v0.0.0-20250220224823-9dea6ec382b5/go.mod h1:LZcbdMgqlAs77pcs8WZnQxNflVHNtzWWDDUJoBFC24A= github.com/bits-and-blooms/bitset v1.20.0 h1:2F+rfL86jE2d/bmw7OhqUg2Sj/1rURkBn3MdfoPyRVU= github.com/bits-and-blooms/bitset v1.20.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= diff --git a/ansi/sixel/encoder.go b/ansi/sixel/encoder.go index 6f18f2a5..c3ce0e58 100644 --- a/ansi/sixel/encoder.go +++ b/ansi/sixel/encoder.go @@ -7,9 +7,9 @@ import ( "io" "strconv" + "github.com/aymanbagabas/quant" + "github.com/aymanbagabas/quant/median" "github.com/bits-and-blooms/bitset" - "github.com/soniakeys/quant" - "github.com/soniakeys/quant/median" ) // Sixels are a protocol for writing images to the terminal by writing a large blob of ANSI-escaped data.