← Back
Editing: coloransi.cpython-311.pyc
� �@�c< � � � d Z g d�ZddlZddlmZ dZd� Z G d� d� � Z ee� � G d � d � � Z ee� � G d� d� � Z eD ]\ Z Z ee e d � � � G d� d� � Z G d� de� � ZdS )z+Tools for coloring text in ANSI terminals. )� TermColors�InputTermColors�ColorScheme�ColorSchemeTable� N)�Struct))�Blackz0;30)�Redz0;31)�Greenz0;32)�Brownz0;33)�Bluez0;34)�Purplez0;35)�Cyanz0;36)� LightGrayz0;37)�DarkGrayz1;30)�LightRedz1;31)� LightGreenz1;32)�Yellowz1;33)� LightBluez1;34)�LightPurplez1;35)� LightCyanz1;36)�Whitez1;37)� BlinkBlackz5;30)�BlinkRedz5;31)� BlinkGreenz5;32)�BlinkYellowz5;33)� BlinkBluez5;34)�BlinkPurplez5;35)� BlinkCyanz5;36)�BlinkLightGrayz5;37c �R � t D ]\ }}t | || j |z � � �dS )z�Build a set of color attributes in a class. Helper function for building the :class:`TermColors` and :class`InputTermColors`. N)�color_templates�setattr�_base)�in_class�name�values �9/usr/lib/python3/dist-packages/IPython/utils/coloransi.py�make_color_tabler( 0 s= � � &� 6� 6� ��U����h�n�u�4�5�5�5�5�6� 6� c � � e Zd ZdZdZdZdZdS )r ac Color escape sequences. This class defines the escape sequences for all the standard (ANSI?) colors in terminals. Also defines a NoColor escape which is just the null string, suitable for defining 'dummy' color schemes in terminals which get confused by color escapes. This class should be used as a mixin for building color schemes.� �[0m�[%smN)�__name__� __module__�__qualname__�__doc__�NoColor�Normalr# � r) r'