Table of Contents

Method EncodeDeletePlacements

Namespace
Terminal.Gui.Drawing
Assembly
Terminal.Gui.dll

EncodeDeletePlacements(int)

Builds a Kitty graphics protocol APC sequence that deletes all placements of the image with the specified imageId, leaving the transmitted image data intact so it can be re-displayed.

public static string EncodeDeletePlacements(int imageId)

Parameters

imageId int

The image id (the Kitty i key) whose placements should be deleted.

Returns

string

The complete Kitty APC delete escape sequence string.

Remarks

Kitty image placements persist on screen until explicitly deleted — unlike Sixel, drawing text over their cells does not erase them. Emit this before re-placing a resized or moved image, and when an image is removed, so a stale placement is not left behind.