+def disp_help(stdscr, stack, headers, idx):
+ stdscr.clear()
+ stdscr.addstr("LIGHTCARDS HELP SCREEN", curses.color_pair(1))
+ stdscr.hline(1, 0, curses.ACS_HLINE, 23)
+ stdscr.addstr(2, 0,
+ "Welcome to lightcards. Here are some keybindings to get\n" +
+ "you started.\n\n" +
+ "h, left previous card\n" +
+ "l, right next card\n" +
+ "j, k, up, down flip card\n" +
+ "i, / star card\n" +
+ "0, ^, home go to start of deck\n" +
+ "$, end go to end of deck\n" +
+ "H, ? open this screen\n\n" +
+ "More information can be found in the man page.\n" +
+ "Press [q], [H], or [?] to go back.")
+ while True:
+ key = stdscr.getkey()
+ if key in ["q", "H", "?"]:
+ get_key(stdscr, stack, headers, idx)
+
+
+def init_disp(stdscr, stack, headers, idx):