Skip to main content

Module term

Module term 

Source
Expand description

Figures drawn as images inside the full-screen views, in terminals that speak an image protocol (kitty, iTerm2, WezTerm, Ghostty, sixel). The image is the same SVG a save writes, rasterised to the area’s pixel size; elsewhere the views keep their text plots, which beat half-block images. From faba’s src/figure/term.rs.

Structs§

PlotImage
One plot area drawn as an image: rebuilt only when marked stale, when the area changes size, or after a terminal attached (its picker may be another, and kitty’s images were deleted by the attach).

Functions§

picker
The image support of the terminal session is attached to now, asked of it (legume_tui::graphics, with a timeout). None without an image protocol, in a terminal not known to have one (DATA_BEANS_TUI_IMAGES=1 asks anyway), or with DATA_BEANS_TUI_IMAGES=0. Call it with the screen up, and again after every attach.