- Rust 99.4%
- Shell 0.6%
| assets/media | ||
| examples | ||
| scripts | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE-APACHE | ||
| LICENSE-MIT | ||
| README.md | ||
| rustfmt.toml | ||
Cursive Image
An image view for the Cursive TUI library.
Works on terminals that support the Kitty graphics protocol, including:
The view supports shrink (the default), fit, and scale sizing modes, image alignment, and scrolling.
You can provide image data directly as RGB (24 bits per pixel), RGBA (32 bits per pixel), or from the following source formats:
- PNG (natively supported by the graphics protocol; enable
pngfeature for some extra functionality) - GIF (enable
giffeature; internally relies on gif) - JPEG (enable
jpegfeature; internally relies on zune-jpeg) - SVG (enable
svgfeature; internally relies on resvg) - PDF (enable
pdffeature; internally relies on hayro)
Supports both standard (sprite) and placeholder modes.
It also automatically uses tmux passthrough mode if it detects that it's in a tmux session. However, note that this feature is not enabled by default in tmux. To enable it from the terminal:
tmux set -g allow-passthrough on
Or add this to ~/.tmux.conf:
set -g allow-passthrough on
Check out the examples.
License
Like much of the Rust ecosystem this project is licensed under your choice of either
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
All code and documentation was written by humans. We do not accept "AI"-generated contributions.