\/____/ \/____/ \/____/ """ stdscr = curses.initscr() curses.noecho() # Don't display text input on the screen curses.cbreak() # Allow processing keys before 'enter' is pressed stdscr.keypad(1) # Detect special key presses curses.start_color() # We want to use colours curses.setsyx(0, 0) # Set the cursor default position to 0,0 curses.init_pair(1, curses.COLOR_WHITE, 24) curses.init_pair(2, curses.COLOR_WHITE, 1) curses.init_pair(3, 4, curses.COLOR_WHITE) AppCommon.COLOR_MENU = curses.color_pair(2) AppCommon.COLOR_BODY = curses.color_pair(1) AppCommon.COLOR_BLOCKTEXT = curses.color_pair(3) # Fetch index content before we properly load the app ArticleMenu.OBJ_ARTICLEMENU_SCROLL_ITEMS = Content_SMH.fetchArticleIndex() # Load the app via a wrapper curses.wrapper(runapp) curses.nocbreak() stdscr.keypad(0) curses.echo() curses.endwin()