�
Ϫ�f�? � � � d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m
Z
mZmZ ddl
mZ ddlmZ dd lmZ dd
lmZmZ dZdZ ed
� \ ZZZZZZZZ Z! G d� dejD � Z#e#Z$ e edddd� ddd� eejJ � G d� dejL � � Z' G d� de(� Z) G d� de'� Z*g d�Z+y)z<
Partial in-memory terminal emulator
@author: Jp Calderone
� N)�implementer)�Version)�insults)�defer�protocol�reactor)�Logger)�_textattributes)� iterbytes)�
deprecated�deprecatedModuleAttribute� �( � c �t � e Zd ZdZdZej ddddeedfd�Z e
edddd� � d � � Zd
� Z
y)�_FormattingStatez�
Represents the formatting state/attributes of a single character.
Character set, intensity, underlinedness, blinkitude, video
reversal, as well as foreground and background colors made up a
character's attributes.
��charset�bold� underline�blink�reverseVideo�
foreground�
background�_subtractingFc �t � || _ || _ || _ || _ || _ || _ || _ || _ y �Nr ) �selfr r r r r r r r s �>/usr/lib/python3/dist-packages/twisted/conch/insults/helper.py�__init__z_FormattingState.__init__3 s> |