class documentation

class TerminalSession(components.Adapter): (source)

Implements interfaces: twisted.conch.interfaces.ISession

View In Hierarchy

Undocumented

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

Inherited from Adapter:

Method __conform__ I forward __conform__ to self.original if it has it, otherwise I simply return None.
Method __init__ Set my 'original' attribute to be the object I am adapting.
Method isuper Forward isuper to self.original
Class Variable multiComponent If this adapter is persistent, should it be automatically registered for all appropriate interfaces.
Class Variable temporaryAdapter If this is True, the adapter will not be persisted on the Componentized.
Instance Variable original Undocumented
def closed(self): (source)
Called when the session is closed.
def eofReceived(self): (source)
Called when the other side has indicated no more data will be sent.
def execCommand(self, proto, cmd): (source)
Execute a command.
Parameters
protoa ProcessProtocol instance.
cmdUndocumented
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.

def openShell(self, proto): (source)
Open a shell and connect it to proto.
Parameters
protoa ProcessProtocol instance.
def windowChanged(self, newWindowSize): (source)
Called when the size of the remote screen has changed.
height = (source)

Undocumented

width = (source)

Undocumented