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): legume-tui’s (legume_tui::graphics::figure), asked for as DATA_BEANS_TUI_IMAGES says. Elsewhere the views keep their text plots.

Structs§

PlotImage
One plot area drawn as an image: rebuilt only when marked stale, when the area changes size, or after a terminal attached or the picker changed (its protocol or cell size may be another, and kitty’s images were deleted by the attach). An image that could not be made is not tried again until then either.

Functions§

picker
The image support of the terminal session is attached to now. 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.