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)[source]

Bases: object

GROUP_COLOR = 4
HEADER_COLOR = 1
REGEX_COLOR = 3
REGULAR_COLOR = 2
__dict__ = mappingproxy({'REGEX_COLOR': 3, 'drawHeadFoot': <function CWindow.drawHeadFoot>, 'buffer': <function CWindow.buffer>, '_writeLine': <function CWindow._writeLine>, 'update': <function CWindow.update>, '__init__': <function CWindow.__init__>, 'GROUP_COLOR': 4, '__module__': 'PyFoam.Applications.CursesApplicationWrapper', '_update': <function CWindow._update>, '_reprint': <function CWindow._reprint>, '__dict__': <attribute '__dict__' of 'CWindow' objects>, 'flush': <function CWindow.flush>, 'writeLine': <function CWindow.writeLine>, '_ensureSize': <function CWindow._ensureSize>, '_checkHeaders': <function CWindow._checkHeaders>, '__doc__': None, 'updateFooterText': <function CWindow.updateFooterText>, 'write': <function CWindow.write>, 'HEADER_COLOR': 1, 'REGULAR_COLOR': 2, 'restore': <function CWindow.restore>, 'handleKey': <function CWindow.handleKey>, '__weakref__': <attribute '__weakref__' of 'CWindow' objects>, 'updateHeaderText': <function CWindow.updateHeaderText>})
__init__(wind, app, bufflen=100, powerline=False)[source]
__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]
restore()[source]
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]
__module__ = 'PyFoam.Applications.CursesApplicationWrapper'
_reset()[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]