관리-도구
편집 파일: terminal.cpython-38.pyc
U ʗReB � 4 @ s d Z ddlmZ ddlmZmZmZmZmZm Z m Z mZmZm Z ddlmZ ddlmZ dgZede dedejd ed ejd e jdejd ejdejd ejdejd ejdejdejdejd ejdede d ej dej!dej"dej#dej$dejdediZ%G dd� 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)�cyanZ brightcyan)�blue� brightblue)�magentaZ brightmagenta)�greenZbrightgreen)Z_cyan_Z_brightcyan_)Z_green_Z _brightgreen_)r r )�red� 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). ZTerminalZterminal�consolec K sP t j| f|� t|dddgd�dk| _|�dd �p4t| _|�dd�| _d| _d S )N�bgZlightZdark�colorscheme�linenosFr ) r �__init__r �darkbg�get�TERMINAL_COLORSr r �_lineno)�self�options� r( ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/pygments/formatters/terminal.pyr! S s ��zTerminalFormatter.__init__c C s t �| ||�S �N)r �format)r&