| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/pygments/formatters/__pycache__/ |
Upload File : |
a
SҼa � 4 @ s d Z ddlZddlmZ ddlmZmZmZmZm Z m
Z
mZmZm
Z
mZ ddlmZ ddlmZ dgZe
ded ed ejd
edejd
ejdejd
ejd
ejdejdejd
ejdejdejdejd
ej dede
dej!dej"d
ej#dej$dej%dej de diZ&G dd� de�Z'dS )z�
pygments.formatters.terminal
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Formatter for terminal output with ANSI sequences.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)� Formatter)
�Keyword�Name�Comment�String�Error�Number�Operator�Generic�Token�
Whitespace)�
ansiformat)�get_choice_opt�TerminalFormatter)� r )�gray�brightblack)ZcyanZ
brightcyan)Zblue�
brightblue)ZmagentaZ
brightmagenta)ZgreenZbrightgreen)Z_cyan_Z_brightcyan_)Z_green_Z
_brightgreen_)r r )Zred� brightred)r r )�yellowr )r r )�**r )z *magenta*z*brightmagenta*)�_brightred_r c @ sH e Zd ZdZdZddgZg Zdd� Zdd� Zd d
� Z dd� Z
d
d� ZdS )r a�
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).
ZTerminalZterminalZconsolec K sT t j| fi |�� t|dddgd�dk| _|�dd �p8t| _|�dd�| _d| _d S )N�bgZlightZdark�colorscheme�linenosFr ) r �__init__r �darkbg�get�TERMINAL_COLORSr r �_lineno)�self�options� r"