NAME
Text::ANSI::Image::kitty - images by the Unicode placeholders of the kitty graphics protocol
SYNOPSIS
use Text::ANSI::Image;
my $img = Text::ANSI::Image->new(method => 'kitty');
DESCRIPTION
The method kitty of Text::ANSI::Image. Each cell of an image is the placeholder character U+10EEEE, with its row and column as combining characters and the id of the image as the 24-bit foreground color. flush sends the images to the terminal, which draws each in the cells of its id.
The terminal is supported when TERM_PROGRAM is ghostty, or iTerm.app with TERM_PROGRAM_VERSION 3.7.3 or later, or when TERM is xterm-kitty. A terminal started from another may inherit its TERM_PROGRAM, which is then wrong.
An image is at most 297 columns wide and 297 rows high, the number of the combining characters. A pager has to take U+10EEEE as a printable character: less 632 or later does with LESSUTFCHARDEF=10EEEE:p. The cells that a search of less highlights are drawn in its color instead of the image.
SEE ALSO
Text::ANSI::Image, Terminal graphics protocol, Unicode placeholders
LICENSE
Copyright © 2026 Kazumasa Utashiro.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.