%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/pygments/formatters/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/pygments/formatters/__pycache__/terminal.cpython-312.pyc

�

|�e���dZddlmZddlmZmZmZmZmZm	Z	m
Z
mZmZm
Z
ddlmZddlmZdgZied�e
d�ed�ej&d	�ed
�ej(d	�e
j*d�ej,d	�ej.d�ej0d
�ej2d�ej4d	�ej6d�ej8d�ej:d�ej<d	�ej>d�ede	d
ej@dejBdejDdejFdejHdejdedi	�Z%Gd�de�Z&y)z�
    pygments.formatters.terminal
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Formatter for terminal output with ANSI sequences.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�	Formatter)
�Keyword�Name�Comment�String�Error�Number�Operator�Generic�Token�
Whitespace)�
ansiformat)�get_choice_opt�TerminalFormatter)�r)�gray�brightblack)�cyan�
brightcyan)�blue�
brightblue)�magenta�
brightmagenta)�green�brightgreen)�_cyan_�_brightcyan_)�_green_�
_brightgreen_)rr)�red�	brightred)rr)�yellowr")r!r!)�**r#)z	*magenta*z*brightmagenta*)�_brightred_r$c�>�eZdZdZdZddgZgZd�Zd�Zd�Z	d�Z
d	�Zy
)ra�
    Format tokens with ANSI color sequences, for output in a text console.
    Color sequences are terminated at newlines, so that paging the output
    works correctly.

    The `get_style_defs()` method doesn't do anything special since there is
    no support for common styles.

    Options accepted:

    `bg`
        Set to ``"light"`` or ``"dark"`` depending on the terminal's background
        (default: ``"light"``).

    `colorscheme`
        A dictionary mapping token types to (lightbg, darkbg) color names or
        ``None`` (default: ``None`` = use builtin colorscheme).

    `linenos`
        Set to ``True`` to have line numbers on the terminal output as well
        (default: ``False`` = no line numbers).
    �Terminal�terminal�consolec���tj|fi|��t|dddgd�dk(|_|j	dd�xst
|_|j	dd�|_d|_y)N�bg�light�dark�colorscheme�linenosFr)	r�__init__r�darkbg�get�TERMINAL_COLORSr-r.�_lineno)�self�optionss  �>/usr/lib/python3/dist-packages/pygments/formatters/terminal.pyr/zTerminalFormatter.__init__Ssj�����4�+�7�+�$�W�d�&-�v�%6��A�DJ�K���"�;�;�}�d�;�N�����{�{�9�e�4������c�0�tj|||�S�N)r�format)r4�tokensource�outfiles   r6r:zTerminalFormatter.format[s������k�7�;�;r7c��|xjdz
c_|jd|jdk7xrdxsd|jfz�y)N�z%s%04d: �
r)r3�write)r4r<s  r6�
_write_linenozTerminalFormatter._write_lineno^s=���������
�
�j�D�L�L�A�$5�$>�$�$D�"�d�l�l�#S�S�Tr7c��|jj|�}|�*|j}|jj|�}|��*||jSr9)r-r1�parentr0)r4�ttype�colorss   r6�
_get_colorzTerminalFormatter._get_colorbsV���!�!�%�%�e�,���n��L�L�E��%�%�)�)�%�0�F��n��d�k�k�"�"r7c
��|jr|j|�|D]�\}}|j|�}|jd�D]�}|r+|j	t||j
d���n |j	|j
d��|jd�s�b|jr|j|���|j	d�����|jr|j	d�yy)NTr?)r.rArF�
splitlinesr@r�rstrip�endswith)r4r;r<rD�value�color�lines       r6�format_unencodedz"TerminalFormatter.format_unencodedls����<�<����w�'�'�	,�L�E�5��O�O�E�*�E��(�(��.�	
,����M�M�*�U�D�K�K��4E�"F�G��M�M�$�+�+�d�"3�4��=�=��&��|�|��*�*�7�3��
�
�d�+�	
,�	,��<�<��M�M�$��r7N)�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenamesr/r:rArFrN�r7r6rr8s7���,�D��9�%�G��I��<�U�#� r7N)'rR�pygments.formatterr�pygments.tokenrrrrrr	r
rrr
�pygments.consoler�
pygments.utilr�__all__�Preproc�Type�Word�Builtin�Function�	Namespace�Class�	Exception�	Decorator�Variable�Constant�	Attribute�Tag�Deleted�Inserted�Heading�
Subheading�Promptr2rrVr7r6�<module>rns����)�1�1�1�'�(��
��
�	�+���1���1�	�
�O�O�5���1�
��L�L�5��
�M�M�9��	�L�L�5��	�M�M�2��	�N�N�7��	�J�J�4��	�N�N�5��	�N�N�2��	�M�M�0�� 	�M�M�0�!�"	�N�N�5�#�$	�H�H�;�%�&�2�
�1��O�O�9����1��O�O�,����:��N�N�,��M�M�9�	�;�;��BG �	�G r7

Zerion Mini Shell 1.0