Module termwiz::image

source ·
Expand description

Images. This module has some helpers for modeling terminal cells that are filled with image data. We’re targeting the iTerm image protocol initially, with sixel as an obvious follow up. Kitty has an extensive and complex graphics protocol whose docs are here: https://github.com/kovidgoyal/kitty/blob/master/docs/graphics-protocol.rst Both iTerm2 and Sixel appear to have semantics that allow replacing the contents of a single chararcter cell with image data, whereas the kitty protocol appears to track the images out of band as attachments with z-order.

Structs§

  • Tracks data for displaying an image in the place of the normal cell character data. Since an Image can span multiple cells, we need to logically carve up the image and track each slice of it. Each cell needs to know its “texture coordinates” within that image so that we can render the right slice.

Enums§