MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / runwrapper

Function runwrapper

src/bitmessagecurses/__init__.py:984–1005  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

982 blacklist.reverse()
983
984def runwrapper():
985 sys.stdout = printlog
986 #sys.stderr = errlog
987
988 # Load messages from database
989 loadInbox()
990 loadSent()
991 loadAddrBook()
992 loadSubscriptions()
993 loadBlackWhiteList()
994
995 stdscr = curses.initscr()
996
997 global logpad
998 logpad = curses.newpad(1024, curses.COLS)
999
1000 stdscr.nodelay(0)
1001 curses.curs_set(0)
1002 stdscr.timeout(1000)
1003
1004 curses.wrapper(run)
1005 doShutdown()
1006
1007def run(stdscr):
1008 # Schedule inventory lookup data

Callers

nothing calls this directly

Calls 6

loadInboxFunction · 0.85
loadSentFunction · 0.85
loadAddrBookFunction · 0.85
loadSubscriptionsFunction · 0.85
loadBlackWhiteListFunction · 0.85
doShutdownFunction · 0.85

Tested by

no test coverage detected