/usr/lib/python3/dist-packages/twisted/conch/insults/__pycache__
Edit: /usr/lib/python3/dist-packages/twisted/conch/insults/__pycache__/insults.cpython-310.pyc (37078B)
o
b2 @ s^ d Z ddlmZmZ ddlmZmZmZ ddl m
Z
mZ G dd deZeeG dd dZ
G d d
d
ejZdZdd
iZG dd dZG dd dZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!G dd d Z"d!d" Z#d#Z$G d$d% d%Z%d&d' e$D Z&eeG d(d) d)ej'Z(e)e$e&D ]
\Z*Z+e,e(e*e+ qG d*d+ d+ej'Z-g d,Z.d-S ).z?
VT102 and VT220 terminal manipulation.
@author: Jp Calderone
) Interfaceimplementer)defer
interfacesprotocol) 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.pymakeConnection 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 )keyIDmodifierr 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 )widthheightr r r
terminalSize" r zITerminalProtocol.terminalSizec C r
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* r z*ITerminalProtocol.unhandledControlSequencec C r
)zh
Called when the connection has been lost.
reason is a Failure describing why.
Nr )reasonr r r
connectionLost2 r z ITerminalProtocol.connectionLostN)__name__
__module____qualname__r r r r r r r r r
r s r c @ s<