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
buffer()[source]
drawHeadFoot(subwin, textIn)[source]
flush()[source]
handleKey(key)[source]
incrOffset(incr)[source]
isStatic()[source]
keyHandler()[source]
restore()[source]
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

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]