-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from simonschoelly/use-weakdeps
- Use weak dependencies instead of Requires.jl - Bump min Julia version to v1.9 - Bump the package version to v0.4.0
- Loading branch information
Showing
3 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
import .Compose | ||
module ComposeExt | ||
|
||
import Compose | ||
import KittyTerminalImages: show_custom | ||
|
||
# This is necessary as without `false` compose tries to draw a png by themself when calling show | ||
# instead of writing it to `io` | ||
show_custom(io::IO, ::MIME"image/png", ctx::Compose.Context) = | ||
Compose.draw(Compose.PNG(io, Compose.default_graphic_width, Compose.default_graphic_height, false), ctx) | ||
|
||
end # module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters