class documentation

class 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.

Method __init__ Undocumented
Method add​Output Undocumented
Method connection​Made Called after a connection has been established.
Method handle_​EOF Undocumented
Method handle_​FF Handle a 'form feed' byte - generally used to request a screen refresh/redraw.
Method handle_​INT Handle ^C as an interrupt keystroke by resetting the current input variables to their initial state.
Method handle_​QUIT Undocumented
Method line​Received Undocumented
Instance Variable interpreter Undocumented
Instance Variable line​Buffer Undocumented
Instance Variable line​Buffer​Index Undocumented
Instance Variable namespace Undocumented
Instance Variable pn Undocumented
Method _needs​Newline Undocumented

Inherited from HistoricRecvLine:

Method current​History​Buffer Undocumented
Method handle_​DOWN Undocumented
Method handle_​RETURN Undocumented
Method handle_​UP Undocumented
Instance Variable history​Lines Undocumented
Instance Variable history​Position Undocumented
Method _deliver​Buffer Undocumented

Inherited from RecvLine (via HistoricRecvLine):

Method character​Received Undocumented
Method current​Line​Buffer Undocumented
Method draw​Input​Line Write a line containing the current input prompt and the current line buffer at the current cursor position.
Method handle_​BACKSPACE Undocumented
Method handle_​DELETE Undocumented
Method handle_​END Undocumented
Method handle_​HOME Undocumented
Method handle_​INSERT Undocumented
Method handle_​LEFT Undocumented
Method handle_​RIGHT Undocumented
Method handle_​TAB Undocumented
Method initialize​Screen Undocumented
Method keystroke​Received A keystroke was received.
Method set​Insert​Mode Undocumented
Method set​Typeover​Mode Undocumented
Method terminal​Size Called to indicate the size of the terminal.
Method unhandled​Control​Sequence Called when an unsupported control sequence is received.
Constant TABSTOP Undocumented
Class Variable ps Undocumented
Instance Variable height Undocumented
Instance Variable key​Handlers Undocumented
Instance Variable mode Undocumented
Instance Variable width Undocumented
Class Variable _log Undocumented
Class Variable _printable​Chars Undocumented

Inherited from TerminalProtocol (via HistoricRecvLine, RecvLine):

Method connection​Lost Called when the connection has been lost.
Method make​Connection Called with an ITerminalTransport when a connection is established.
Instance Variable terminal Undocumented
def __init__(self, namespace=None): (source)

Undocumented

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

Undocumented

def connectionMade(self): (source)
Called after a connection has been established.
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_INT(self): (source)
Handle ^C as an interrupt keystroke by resetting the current input variables to their initial state.
def handle_QUIT(self): (source)

Undocumented

def lineReceived(self, line): (source)
interpreter = (source)

Undocumented

lineBufferIndex: int = (source)
namespace = (source)

Undocumented

def _needsNewline(self): (source)

Undocumented