Part of twisted.conch.recvline View Source View In Hierarchy
Known subclasses: twisted.conch.recvline.HistoricRecvLine
TerminalProtocol
which adds line editing features.
Clients will be prompted for lines of input with all the usual features: character echoing, left and right arrow support for moving the cursor to different areas of the line buffer, backspace and delete for removing characters, and insert for toggling between typeover and insert mode. Tabs will be expanded to enough spaces to move the cursor to the next tabstop (every four characters by default). Enter causes the line buffer to be cleared and the line to be passed to the lineReceived() method which, by default, does nothing. Subclasses are responsible for redrawing the input prompt (this will probably change).
Method | connectionMade | Called after a connection has been established. |
Method | initializeScreen | Undocumented |
Method | currentLineBuffer | Undocumented |
Method | setInsertMode | 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 | Undocumented |
Method | unhandledControlSequence | Undocumented |
Method | keystrokeReceived | Undocumented |
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_RETURN | Undocumented |
Method | handle_INSERT | Undocumented |
Method | lineReceived | Undocumented |
Inherited from TerminalProtocol:
Method | makeConnection | Undocumented |
Method | connectionLost | Undocumented |