ruạṛ
3 ��X7 � 5 @ s d Z ddlZddlmZ ddlmZmZmZmZm Z m Z mZmZm Z mZ ddlmZ ddlmZ dgZe ded ed!ejd"ed#ejd$ejd%ejd&ejd'ejd(ejd)ejd*ejd+ejd,ejd-ejd.ej d/ed0e d1ej!d2ej"d3ej#d4ej$d5ej%d6ej d7e d8iZ&G dd� de�Z'dS )9z� pygments.formatters.terminal ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Formatter for terminal output with ANSI sequences. :copyright: Copyright 2006-2017 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� � lightgray�darkgray�teal� turquoise�darkblue�blue�purple�fuchsia� darkgreen�green�_teal_�_turquoise_�_darkgreen_�_green_�darkred�red�brown�**�*purple*� *fuchsia*�_red_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 sP t j| f|� t|dddgd�dk| _|jdd �p4t| _|jdd�| _d| _d S )NZbgZlightZdark�colorscheme�linenosFr ) r �__init__r �darkbg�get�TERMINAL_COLORSr&