class documentation

class twisted.conch.manhole_ssh.TerminalSession(components.Adapter): (source)

Implements interfaces: twisted.conch.interfaces.ISession

View In Hierarchy

Undocumented

Method getPty Get a pseudo-terminal for use by a shell or command.
Instance Variable height Undocumented
Instance Variable width Undocumented
Method openShell Open a shell and connect it to proto.
Method execCommand Execute a command.
Method windowChanged Called when the size of the remote screen has changed.
Method eofReceived Called when the other side has indicated no more data will be sent.
Method closed Called when the session is closed.

Inherited from Adapter:

Class Variable temporaryAdapter If this is True, the adapter will not be persisted on the Componentized.
Class Variable multiComponent If this adapter is persistent, should it be automatically registered for all appropriate interfaces.
Method __init__ Set my 'original' attribute to be the object I am adapting.
Instance Variable original Undocumented
Method __conform__ I forward __conform__ to self.original if it has it, otherwise I simply return None.
Method isuper Forward isuper to self.original
def getPty(self, term, windowSize, attrs): (source)

Get a pseudo-terminal for use by a shell or command.

If a pseudo-terminal is not available, or the request otherwise fails, raise an exception.

height = (source)

Undocumented

width = (source)

Undocumented

def openShell(self, proto): (source)

Open a shell and connect it to proto.

Parametersprotoa ProcessProtocol instance.
def execCommand(self, proto, cmd): (source)

Execute a command.

Parametersprotoa ProcessProtocol instance.
cmdUndocumented
def windowChanged(self, newWindowSize): (source)

Called when the size of the remote screen has changed.

def eofReceived(self): (source)

Called when the other side has indicated no more data will be sent.

def closed(self): (source)

Called when the session is closed.

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.