t.c.m.TerminalSession(components.Adapter) : class documentation

Part of twisted.conch.manhole_ssh View Source View In Hierarchy

Implements interfaces: twisted.conch.interfaces.ISession

Undocumented
Method getPty Get a psuedo-terminal for use by a shell or command.
Method openShell Open a shell and connect it to proto.
Method execCommand Execute a command.
Method closed Called when the session is closed.

Inherited from Adapter:

Method __init__ Set my 'original' attribute to be the object I am adapting.
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 psuedo-terminal for use by a shell or command.

If a psuedo-terminal is not available, or the request otherwise fails, raise an exception.
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.
def closed(self): (source)
Called when the session is closed.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:17:34.