def doProgram(stdscr, flags, cursesAPI=None, lineObjs=None): # curses and lineObjs get dependency injected for # our tests, so init these if they are not provided if not cursesAPI: cursesAPI = CursesAPI() if not lineObjs: lineObjs = getLineObjs() output.clearFile() logger.clearFile() screen = screenControl.Controller(flags, stdscr, lineObjs, cursesAPI) screen.control()
def doProgram(stdscr): output.clearFile() logger.clearFile() lineObjs = getLineObjs() screen = screenControl.Controller(stdscr, lineObjs) screen.control()