winConsoleHandler module
- winConsoleHandler.CHECK_DEAD_INTERVAL = 100
How often to check whether the console is dead (in ms).
- winConsoleHandler.consoleObject = None
The console window that is currently in the foreground.
- winConsoleHandler.consoleWinEventHookHandles = []
a list of currently registered console win events.
- winConsoleHandler.connectConsole(obj)
- winConsoleHandler.disconnectConsole()
- winConsoleHandler.isConsoleDead()
- winConsoleHandler._checkDead()
- winConsoleHandler.getConsoleVisibleLines()
- winConsoleHandler.initialize()
- winConsoleHandler.terminate()
- class winConsoleHandler.WinConsoleTextInfo(*args, **kwargs)
Bases:
OffsetsTextInfo
Constructor. Subclasses may extend this to perform implementation specific initialisation, calling their superclass method afterwards.
- _cache_consoleScreenBufferInfo = True
- _get_consoleScreenBufferInfo()
- _offsetFromConsoleCoord(x, y)
- _consoleCoordFromOffset(offset)
- _getOffsetFromPoint(x, y)
- _getPointFromOffset(offset)
- _getCaretOffset()
- _getSelectionOffsets()
- getTextWithFields(formatConfig: Dict | None = None) List[str | FieldCommand]
Retrieves the text in this range, as well as any control/format fields associated therewith. Subclasses may override this. The base implementation just returns the text. @param formatConfig: Document formatting configuration, useful if you wish to force a particular
configuration for a particular task.
@return: A sequence of text strings interspersed with associated field commands.
- _getTextRange(start, end)
Retrieve the text in a given offset range. @param start: The start offset. @type start: int @param end: The end offset (exclusive). @type end: int @return: The text contained in the requested range. @rtype: str
- _getLineOffsets(offset)
- _getLineNumFromOffset(offset)
- _getStoryLength()
- _get_clipboardText()
Text suitably formatted for copying to the clipboard. E.g. crlf characters inserted between lines.
- _abc_impl = <_abc._abc_data object>
- clipboardText
- consoleScreenBufferInfo