class documentation

class twisted.conch.manhole.Manhole(recvline.HistoricRecvLine): (source)

Known subclasses: twisted.conch.manhole.ColoredManhole

View In Hierarchy

Mediator between a fancy line source and an interactive interpreter.

This accepts lines from its transport and passes them on to a ManholeInterpreter. Control commands (^C, ^D, ^\) are also handled with something approximating their normal terminal-mode behavior. It can optionally be constructed with a dict which will be used as the local namespace for any code executed.

Instance Variable namespace Undocumented
Method __init__ Undocumented
Method connectionMade Called after a connection has been established.
Instance Variable interpreter Undocumented
Method handle_INT Handle ^C as an interrupt keystroke by resetting the current input variables to their initial state.
Instance Variable pn Undocumented
Instance Variable lineBuffer Undocumented
Instance Variable lineBufferIndex Undocumented
Method handle_EOF Undocumented
Method handle_FF Handle a 'form feed' byte - generally used to request a screen refresh/redraw.
Method handle_QUIT Undocumented
Method addOutput Undocumented
Method lineReceived Undocumented
Method _needsNewline Undocumented

Inherited from HistoricRecvLine:

Instance Variable historyLines Undocumented
Instance Variable historyPosition Undocumented
Method currentHistoryBuffer Undocumented
Method handle_UP Undocumented
Method handle_DOWN Undocumented
Method handle_RETURN Undocumented
Method _deliverBuffer Undocumented

Inherited from RecvLine (via HistoricRecvLine):

Instance Variable width Undocumented
Instance Variable height Undocumented
Class Variable TABSTOP Undocumented
Class Variable ps Undocumented
Instance Variable keyHandlers Undocumented
Method initializeScreen Undocumented
Method currentLineBuffer Undocumented
Method setInsertMode Undocumented
Instance Variable mode Undocumented
Method setTypeoverMode Undocumented
Method drawInputLine Write a line containing the current input prompt and the current line buffer at the current cursor position.
Method terminalSize Called to indicate the size of the terminal.
Method unhandledControlSequence Called when an unsupported control sequence is received.
Method keystrokeReceived A keystroke was received.
Method characterReceived Undocumented
Method handle_TAB Undocumented
Method handle_LEFT Undocumented
Method handle_RIGHT Undocumented
Method handle_HOME Undocumented
Method handle_END Undocumented
Method handle_BACKSPACE Undocumented
Method handle_DELETE Undocumented
Method handle_INSERT Undocumented
Class Variable _printableChars Undocumented
Class Variable _log Undocumented

Inherited from TerminalProtocol (via HistoricRecvLine, RecvLine):

Method makeConnection Called with an ITerminalTransport when a connection is established.
Instance Variable terminal Undocumented
Method connectionLost Called when the connection has been lost.
namespace = (source)

Undocumented

def __init__(self, namespace=None): (source)

Undocumented

def connectionMade(self): (source)

Called after a connection has been established.

interpreter = (source)

Undocumented

def handle_INT(self): (source)

Handle ^C as an interrupt keystroke by resetting the current input variables to their initial state.

lineBuffer = (source)
lineBufferIndex = (source)
def handle_EOF(self): (source)

Undocumented

def handle_FF(self): (source)

Handle a 'form feed' byte - generally used to request a screen refresh/redraw.

def handle_QUIT(self): (source)

Undocumented

def _needsNewline(self): (source)

Undocumented

def addOutput(self, data, isAsync=None, **kwargs): (source)

Undocumented

def lineReceived(self, line): (source)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.