Table of Contents

Method RetainRasterImages

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

RetainRasterImages(IReadOnlyCollection<string>)

Removes every raster image command whose Id is not in activeIds, marking the cells they covered dirty so they are repainted.

void RetainRasterImages(IReadOnlyCollection<string> activeIds)

Parameters

activeIds IReadOnlyCollection<string>

The ids of raster images still owned by a rendered view.

Remarks

Raster graphics (Sixel/Kitty) are emitted out-of-band and persist on screen until explicitly deleted, so they linger after the view that transmitted them is no longer rendered (hidden, removed, or on a runnable that has ended). The framework calls this after each draw with the ids of the images still owned by rendered views, releasing the rest. See RemoveRasterImage(string).