class documentation

class ExpectableBuffer(TerminalBuffer): (source)

View In Hierarchy

Undocumented

Method connection​Made Called when a connection is made.
Method cursor​Home Move the cursor home.
Method expect Undocumented
Method write Add the given printable bytes to the terminal.
Method _check​Expected Undocumented
Method _timeout​Expected Undocumented
Instance Variable _expecting Undocumented
Instance Variable _mark Undocumented

Inherited from TerminalBuffer:

Method __bytes__ Undocumented
Method application​Keypad​Mode Cause keypad to generate control functions.
Method cursor​Backward Move the cursor left n columns.
Method cursor​Down Move the cursor down n lines.
Method cursor​Forward Move the cursor right n columns.
Method cursor​Position Move the cursor to the given line and column.
Method cursor​Up Move the cursor up n lines.
Method delete​Character Delete n characters starting at the cursor position.
Method delete​Line Delete n lines starting at the cursor position.
Method double​Height​Line Make the current line the top or bottom half of a double-height, double-width line.
Method double​Width​Line Make the current line a double-width line.
Method erase​Display Erase the entire display.
Method erase​Line Erase the entire cursor line.
Method erase​To​Display​Beginning Erase from the cursor to the beginning of the display, including the cursor position.
Method erase​To​Display​End Erase from the cursor to the end of the display, including the cursor position.
Method erase​To​Line​Beginning Erase from the cursor to the beginning of the line, including the cursor position.
Method erase​To​Line​End Erase from the cursor to the end of line, including cursor position.
Method get​Character Undocumented
Method get​Host Similar to getPeer, but returns an address describing this side of the connection.
Method get​Peer Get the remote address of this connection.
Method horizontal​Tabulation​Set Set a tab stop at the current cursor position.
Method index Move the cursor down one line, performing scrolling if necessary.
Method insert​At​Cursor Add one byte to the terminal at the cursor and make consequent state updates.
Method insert​Line Insert n lines at the cursor position.
Method lose​Connection Close my connection, after writing all pending data.
Method next​Line Update the cursor position attributes and scroll down if appropriate.
Method numeric​Keypad​Mode Cause keypad to generate normal characters.
Method report​Cursor​Position Return a Deferred that fires with a two-tuple of (x, y) indicating the cursor position.
Method reset Reset the terminal to its initial state.
Method reset​Modes Reset the given modes on the terminal.
Method reset​Private​Modes Disable the given modes.
Method restore​Cursor Restore the previously saved cursor position, character attribute, character set, and origin mode selection.
Method reverse​Index Move the cursor up one line, performing scrolling if necessary.
Method save​Cursor Save the cursor position, character attribute, character set, and origin mode selection.
Method select​Character​Set Select a character set.
Method select​Graphic​Rendition Enabled one or more character attributes.
Method set​Modes Set the given modes on the terminal.
Method set​Private​Modes Enable the given modes.
Method shift​In Activate the G0 character set.
Method shift​Out Activate the G1 character set.
Method single​Shift2 Shift to the G2 character set for a single character.
Method single​Shift3 Shift to the G3 character set for a single character.
Method single​Width​Line Make the current line a single-width, single-height line.
Method tabulation​Clear Clear the tab stop at the current cursor position.
Method tabulation​Clear​All Clear all tab stops.
Method unhandled​Control​Sequence Called when an unsupported control sequence is received.
Method write​Sequence Write an iterable of byte strings to the physical connection.
Constant BACKSPACE Undocumented
Constant TAB Undocumented
Class Variable exec​Bytes Undocumented
Class Variable exec​Str Undocumented
Class Variable fill Undocumented
Class Variable height Undocumented
Class Variable void Undocumented
Class Variable width Undocumented
Instance Variable active​Charset Undocumented
Instance Variable charsets Undocumented
Instance Variable graphic​Rendition Undocumented
Instance Variable home Undocumented
Instance Variable keypad​Mode Undocumented
Instance Variable lines Undocumented
Instance Variable modes Undocumented
Instance Variable numeric​Keypad Undocumented
Instance Variable private​Modes Undocumented
Instance Variable x Undocumented
Instance Variable y Undocumented
Method _current​Formatting​State Undocumented
Method _empty​Line Undocumented
Method _scroll​Down Undocumented
Method _scroll​Up Undocumented
Class Variable _log Undocumented
Instance Variable _saved​Cursor Undocumented

Inherited from Protocol (via TerminalBuffer):

Method connection​Lost Called when the connection is shut down.
Method data​Received Called whenever data is received.
Method log​Prefix Return a prefix matching the class name, to identify log messages related to this protocol instance.
Class Variable factory Undocumented

Inherited from BaseProtocol (via TerminalBuffer, Protocol):

Method make​Connection Make a connection to a transport and a server.
Instance Variable connected Undocumented
Instance Variable transport Undocumented
def connectionMade(self): (source)

Called when a connection is made.

This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.

def expect(self, expression, timeout=None, scheduler=reactor): (source)

Undocumented

def write(self, data): (source)

Add the given printable bytes to the terminal.

Line feeds in bytes will be replaced with carriage return / line feed pairs.

def _checkExpected(self): (source)

Undocumented

def _timeoutExpected(self, d): (source)

Undocumented

_expecting: list = (source)

Undocumented

_mark: int = (source)

Undocumented