Module

utils.terminal_icons

Terminal icon definitions for Kida template engine.

Provides anIconSetproxy that templates use to emit Unicode or ASCII icons. Each icon is returned as aStyledstring so it bypasses ANSI sanitization.

Usage in templates::

{{ icons.check }} All tests passed
{{ icons.arrow_r }} Next step

Thread-Safety: IconSetis immutable after construction. Safe for concurrent access.

Classes

IconSet 3
Proxy object for accessing terminal icons from templates. Attribute access returns a ``Styled`` st…

Proxy object for accessing terminal icons from templates.

Attribute access returns aStyledstring containing either the Unicode symbol or its ASCII fallback, depending on theunicodeflag.

Methods

Internal Methods 3
__init__ 1
def __init__(self, *, unicode: bool = True) -> None
Parameters
Name Type Description
unicode Default:True
__getattr__ 1 Styled
def __getattr__(self, name: str) -> Styled
Parameters
Name Type Description
name
Returns
Styled
__repr__ 0 str
def __repr__(self) -> str
Returns
str