Skip to content

aliases

All PTG-builtin TIM aliases.

apply_default_aliases(lang)

Applies all aliases within DEFAULT_ALIASES.

Parameters:

Name Type Description Default
lang MarkupLanguage

The MarkupLanguage instance all aliases will be applied to.

required
Source code in pytermgui/markup/aliases.py
26
27
28
29
30
31
32
33
34
def apply_default_aliases(lang: MarkupLanguage) -> None:
    """Applies all aliases within `DEFAULT_ALIASES`.

    Args:
        lang: The `MarkupLanguage` instance all aliases will be
            applied to.
    """

    lang.alias_multiple(**DEFAULT_ALIASES)