← Back
Editing: __init__.cpython-311.pyc
� �Ïc� � �v � d Z ddlmZ ddlmZmZmZmZmZm Z m Z ddlmZ ddl mZ ddlmZmZmZmZmZ g d�ZdS ) aa Many places in prompt_toolkit can take either plain text, or formatted text. For instance the :func:`~prompt_toolkit.shortcuts.prompt` function takes either plain text or formatted text for the prompt. The :class:`~prompt_toolkit.layout.FormattedTextControl` can also take either plain text or formatted text. In any case, there is an input that can either be just plain text (a string), an :class:`.HTML` object, an :class:`.ANSI` object or a sequence of `(style_string, text)` tuples. The :func:`.to_formatted_text` conversion function takes any of these and turns all of them into such a tuple sequence. � )�ANSI)�AnyFormattedText� FormattedText�StyleAndTextTuples�Template�is_formatted_text�merge_formatted_text�to_formatted_text)�HTML)�PygmentsTokens)�fragment_list_len�fragment_list_to_text�fragment_list_width�split_lines� to_plain_text)r r r r r r r r r r r r r r r N)�__doc__�ansir �baser r r r r r r �htmlr �pygmentsr �utilsr r r r r �__all__� � �H/usr/lib/python3/dist-packages/prompt_toolkit/formatted_text/__init__.py�<module>r s� ��� � � � � � � �� � � � � � � � � � � � � � � � � � � � � � � � $� $� $� $� $� $�� � � � � � � � � � � � � �� � ���r
Save File
Cancel