Skip to content

Text and Text Decorations

Saif Ahmed edited this page Dec 16, 2022 · 1 revision

Text Decorations, like Fonts add to the richness of an application. The text in a Term::Graille application can be placed on the screen arbitrarily. They can be decorated (colour and style) exploiting the ANSI capability of the terminal. Using Pseudo-pixel capabilities one can also use user loaded 8 bit fonts.

printAt is a function exported by Term::Graille and allows text to be placed anywhere on the terminal window. colour (note English UK spelling) allows the gnerating of the escape code corresponding to the haracter style and colour.

$canvas->textAt allows text to be placed at specific areas on the Term::Graille canvas.

$canvas->paint decorates characters at an area of the canvas