File: //usr/lib/python3/dist-packages/twisted/conch/insults/__pycache__/insults.cpython-310.pyc
o
�b2� � @ s^ d Z ddlmZmZ ddlmZmZmZ ddl m
Z
mZ G dd� de�Zee�G dd� d��Z
G d d
� d
ej�ZdZdd
iZG dd� d�ZG dd� d�ZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!G dd � d �Z"d!d"� Z#d#Z$G d$d%� d%�Z%d&d'� e$D �Z&ee�G d(d)� d)ej'��Z(e)e$e&�D ]
\Z*Z+e,e(e*e+� q�G d*d+� d+ej'�Z-g d,�Z.d-S ).z?
VT102 and VT220 terminal manipulation.
@author: Jp Calderone
� )� Interface�implementer)�defer�
interfaces�protocol)� iterbytes�
networkStringc @ s4 e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� ZdS )�ITerminalProtocolc C � 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 � z ITerminalProtocol.makeConnectionc C r
)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 r z#ITerminalProtocol.keystrokeReceivedc C r
)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"