- def disp_help(self):
- """Display help screen"""
- self.win.clear()
- self.win.addstr("LIGHTCARDS HELP", curses.color_pair(1) +
- curses.A_BOLD)
- self.win.hline(1, 0, curses.ACS_HLINE, 15)
- self.win.addstr(2, 0, textwrap.fill(
- "Welcome to lightcards. Here are some keybindings to get you " +
- "started:", width=self.wrap_width()) +
- "\n\nh, left previous card\n" +
- "l, right next card\n" +
- "j, k, up, down flip card\n" +
- "i, / star card\n" +
- "0, ^, home go to the start of the deck\n" +
- "$, end go to the end of the deck\n" +
- "H, ? open this screen\n" +
- "e open the input file in $EDITOR\n" +
- "m open the control menu\n\n" +
- textwrap.fill(
- "More information can be found in the man page, " +
- "or by running `lightcards --help`.",
- width=self.wrap_width()) +
- "\n\nPress [q], [H], or [?] to go back.")
- while True:
- key = self.win.getkey()
- if key in ["q", "H", "?"]:
- self.get_key()