libvt.style

Terminal cell colors, SGR attributes, and hyperlink metadata.

class libvt.style.AnsiColor
class libvt.style.AnsiColor

Bases: IntEnum

Standard and bright ECMA-48 / aixterm 16-color palette indices.

Bases: object

OSC 8 hyperlink attached to printed cells independent of SGR 0.

class libvt.style.IndexedColor
class libvt.style.IndexedColor

Bases: object

256-color palette entry (SGR 38;5;n / SGR 48;5;n).

class libvt.style.RgbColor
class libvt.style.RgbColor

Bases: object

24-bit direct RGB color (SGR 38;2;r;g;b / SGR 38:2::r:g:b).

class libvt.style.Style
class libvt.style.Style

Bases: object

Immutable SGR graphic rendition attributes for a cell or active pen.

class libvt.style.UnderlineStyle
class libvt.style.UnderlineStyle

Bases: IntEnum

ITU T.416 / Kitty extended underline styles (SGR 4:x).