class documentation
class Manhole(recvline.HistoricRecvLine): (source)
Known subclasses: twisted.conch.manhole.ColoredManhole
Constructor: Manhole(namespace)
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 |
Undocumented |
| Method | connection |
Called after a connection has been established. |
| Method | handle_ |
Undocumented |
| Method | handle_ |
Handle a 'form feed' byte - generally used to request a screen refresh/redraw. |
| Method | handle_ |
Handle ^C as an interrupt keystroke by resetting the current input variables to their initial state. |
| Method | handle_ |
Undocumented |
| Method | line |
Undocumented |
| Instance Variable | interpreter |
Undocumented |
| Instance Variable | line |
Undocumented |
| Instance Variable | line |
Undocumented |
| Instance Variable | namespace |
Undocumented |
| Instance Variable | pn |
Undocumented |
| Method | _needs |
Undocumented |
Inherited from HistoricRecvLine:
| Method | current |
Undocumented |
| Method | handle_ |
Undocumented |
| Method | handle_ |
Undocumented |
| Method | handle_ |
Undocumented |
| Instance Variable | history |
Undocumented |
| Instance Variable | history |
Undocumented |
| Method | _deliver |
Undocumented |
Inherited from RecvLine (via HistoricRecvLine):
| Method | character |
Undocumented |
| Method | current |
Undocumented |
| Method | draw |
Write a line containing the current input prompt and the current line buffer at the current cursor position. |
| Method | handle_ |
Undocumented |
| Method | handle_ |
Undocumented |
| Method | handle_ |
Undocumented |
| Method | handle_ |
Undocumented |
| Method | handle_ |
Undocumented |
| Method | handle_ |
Undocumented |
| Method | handle_ |
Undocumented |
| Method | handle_ |
Undocumented |
| Method | initialize |
Undocumented |
| Method | keystroke |
A keystroke was received. |
| Method | set |
Undocumented |
| Method | set |
Undocumented |
| Method | terminal |
Called to indicate the size of the terminal. |
| Method | unhandled |
Called when an unsupported control sequence is received. |
| Constant | TABSTOP |
Undocumented |
| Class Variable | ps |
Undocumented |
| Instance Variable | height |
Undocumented |
| Instance Variable | key |
Undocumented |
| Instance Variable | mode |
Undocumented |
| Instance Variable | width |
Undocumented |
| Class Variable | _log |
Undocumented |
| Class Variable | _printable |
Undocumented |
Inherited from TerminalProtocol (via HistoricRecvLine, RecvLine):
| Method | connection |
Called when the connection has been lost. |
| Method | make |
Called with an ITerminalTransport when a connection is established. |
| Instance Variable | terminal |
Undocumented |