File: //lib/python3/dist-packages/twisted/conch/insults/__pycache__/insults.cpython-38.pyc
U
W[� � @ s� d Z ddlmZmZ ddlmZmZmZ ddl m
Z
mZmZ G dd� de�Z
ee
�G dd� de��ZG d d
� d
ej�ZdZdd
iZG dd� d�ZG dd� d�ZdZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"dZ#G dd � d �Z$d!d"� Z%d#Z&G d$d%� d%e�Z'd&d'� e&D �Z(ee�G d(d)� d)ej)��Z*e+e&e(�D ]\Z,Z-e.e*e,e-� �q2G d*d+� d+ej)�Z/dd
ddd,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d)d+gZ0d;S )<z?
VT102 and VT220 terminal manipulation.
@author: Jp Calderone
� )�implementer� Interface)�protocol�defer�
interfaces)�
intToBytes� iterbytes�
networkStringc @ s4 e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� ZdS )�ITerminalProtocolc C s dS )zX
Called with an L{ITerminalTransport} when a connection is established.
N� )� transportr r �?/usr/lib/python3/dist-packages/twisted/conch/insults/insults.py�makeConnection s z ITerminalProtocol.makeConnectionc C s dS )a`
A keystroke was received.
Each keystroke corresponds to one invocation of this method.
keyID is a string identifier for that key. Printable characters
are represented by themselves. Control keys, such as arrows and
function keys, are represented with symbolic constants on
L{ServerProtocol}.
Nr )�keyID�modifierr r r
�keystrokeReceived s z#ITerminalProtocol.keystrokeReceivedc C s dS )z�
Called to indicate the size of the terminal.
A terminal of 80x24 should be assumed if this method is not
called. This method might not be called for real terminals.
Nr )�width�heightr r r
�terminalSize# s zITerminalProtocol.terminalSizec C s dS �z�
Called when an unsupported control sequence is received.
@type seq: L{str}
@param seq: The whole control sequence which could not be interpreted.
Nr ��seqr r r
�unhandledControlSequence+ s z*ITerminalProtocol.unhandledControlSequencec C s dS )zh
Called when the connection has been lost.
reason is a Failure describing why.
Nr )�reasonr r r
�connectionLost3 s z ITerminalProtocol.connectionLostN)�__name__�
__module__�__qualname__r r r r r r r r r
r
s
r
c @ s<