PyFoam.Applications.CursesApplicationWrapper module

Implements a little curses wrapper that makes the output of PyFoam-applications more flashy

class PyFoam.Applications.CursesApplicationWrapper.CWindow(wind, app, bufflen=100, powerline=False, handleKeyboard=True)[source]

Bases: object

GROUP_COLOR = 4
HEADER_COLOR = 1
REGEX_COLOR = 3
REGULAR_COLOR = 2
__dict__ = mappingproxy({'__module__': 'PyFoam.Applications.CursesApplicationWrapper', 'REGULAR_COLOR': 2, 'HEADER_COLOR': 1, 'REGEX_COLOR': 3, 'GROUP_COLOR': 4, '__init__': <function CWindow.__init__>, 'incrOffset': <function CWindow.incrOffset>, 'staticOffset': <property object>, 'isStatic': <function CWindow.isStatic>, 'keyHandler': <function CWindow.keyHandler>, 'updateFooterText': <function CWindow.updateFooterText>, 'updateHeaderText': <function CWindow.updateHeaderText>, 'restore': <function CWindow.restore>, '_update': <function CWindow._update>, 'update': <function CWindow.update>, '_reprint': <function CWindow._reprint>, 'drawHeadFoot': <function CWindow.drawHeadFoot>, '_ensureSize': <function CWindow._ensureSize>, '_checkHeaders': <function CWindow._checkHeaders>, 'handleKey': <function CWindow.handleKey>, 'writeLine': <function CWindow.writeLine>, 'flush': <function CWindow.flush>, 'write': <function CWindow.write>, '_writeLine': <function CWindow._writeLine>, 'buffer': <function CWindow.buffer>, '__dict__': <attribute '__dict__' of 'CWindow' objects>, '__weakref__': <attribute '__weakref__' of 'CWindow' objects>, '__doc__': None})
__init__(wind, app, bufflen=100, powerline=False, handleKeyboard=True)[source]

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'PyFoam.Applications.CursesApplicationWrapper'
__weakref__

list of weak references to the object (if defined)

_checkHeaders(force=False)[source]
_ensureSize()[source]
_reprint()[source]
_update()[source]
_writeLine(l)[source]
buffer()[source]
drawHeadFoot(subwin, textIn)[source]
flush()[source]
handleKey(key)[source]
incrOffset(incr)[source]
isStatic()[source]
keyHandler()[source]
restore()[source]
property staticOffset
update(resize=False, onlyHeader=False)[source]
updateFooterText()[source]
updateHeaderText()[source]
write(txt)[source]
writeLine(l)[source]
class PyFoam.Applications.CursesApplicationWrapper.CWindowAnalyzed(wind, app, bufflen=100, powerline=False)[source]

Bases: PyFoam.Applications.CursesApplicationWrapper.CWindow

__init__(wind, app, bufflen=100, powerline=False)[source]

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'PyFoam.Applications.CursesApplicationWrapper'
_reset()[source]
addGenerator(gen)[source]
isStatic()[source]
setAnalyzer(ana)[source]
setRunner(runner)[source]
timeChanged()[source]
updateFooterText()[source]
updateHeaderText()[source]
PyFoam.Applications.CursesApplicationWrapper.addExpr(e)[source]
PyFoam.Applications.CursesApplicationWrapper.cursesWrap(app, bufflen=1000, endSleepTime=0, powerline=False)[source]