HEX
Server: Apache/2.4.67 (Debian)
System: Linux vps-b2547eb4 6.1.0-41-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
User: root (0)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pygments/formatters/__pycache__/terminal.cpython-311.pyc
�

�E�c����dZddlmZddlmZmZmZmZmZm	Z	m
Z
mZmZm
Z
ddlmZddlmZdgZied�e
d�ed�ejd	�ed
�ejd	�e
jd�ejd	�ejd�ejd
�ejd�ejd	�ejd�ejd�ejd�ejd	�ejd�ede	d
ej dej!dej"dej#dej$dejdedi	�Z%Gd�de��Z&dS)z�
    pygments.formatters.terminal
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Formatter for terminal output with ANSI sequences.

    :copyright: Copyright 2006-2022 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	�Zd
S)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|_|�dd��pt
|_|�dd��|_d|_dS)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__Ss�����4�+�+�7�+�+�+�$�W�d�&-�v�%6��A�A�DJ�K���"�;�;�}�d�;�;�N�����{�{�9�e�4�4��������c�.�tj|||��S�N)r�format)r4�tokensource�outfiles   r6r:zTerminalFormatter.format[s�����k�7�;�;�;r7c�~�|xjdz
c_|�d|jdkrdpd|jfz��dS)N�z%s%04d: �
r)r3�write)r4r<s  r6�
_write_linenozTerminalFormatter._write_lineno^sG����������
�
�j�D�L�A�$5�$>�$�$D�"�d�l�#S�S�T�T�T�T�Tr7c��|j�|��}|�#|j}|j�|��}|�#||jSr9)r-r1�parentr0)r4�ttype�colorss   r6�
_get_colorzTerminalFormatter._get_colorbsR���!�%�%�e�,�,���n��L�E��%�)�)�%�0�0�F��n��d�k�"�"r7c
�4�|jr|�|��|D]�\}}|�|��}|�d��D]�}|r7|�t||�d������n(|�|�d����|�d��r2|jr|�|����|�d������|jr|�d��dSdS)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��(�(��.�.�	
,�	
,���5��M�M�*�U�D�K�K��4E�4E�"F�"F�G�G�G�G��M�M�$�+�+�d�"3�"3�4�4�4��=�=��&�&�,��|�,��*�*�7�3�3�3�3��
�
�d�+�+�+��	
,��<�	 ��M�M�$������	 �	 r7N)�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenamesr/r:rArFrN�r7r6rr8s���������,�D��9�%�G��I����<�<�<�U�U�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>rnsT����)�(�(�(�(�(�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�'�'�'�'�'�'�(�(�(�(�(�(��
��
�	�+���1���1�	�
�O�5���1�
��L�5��
�M�9��	�L�5��	�M�2��	�N�7��	�J�4��	�N�5��	�N�2��	�M�0�� 	�M�0�!�"	�N�5�#�$	�H�;�%�&�2�
�1��O�9���1��O�,���:��N�,��M�9�	�;�;���BG �G �G �G �G �	�G �G �G �G �G r7