- # Create bar component
- bar_start = "["
- bar_middle = self.stack[self.obj.getIdx()].printStar()
- bar_end = f"] [{self.ntotal()}/{str(len(self.stack))} starred] " + \
- f"[{percent}% (" + \
- str(self.obj.getIdx() + 1).zfill(len(str(len(self.stack)))) + \
- f"/{str(len(self.stack))})] [" + \
- f"{self.headers[self.obj.getSide()]} (" + \
- f"{str(self.obj.getSide() + 1)})] "
+ text = [
+ "Welcome to runner. Here are some keybindings",
+ "to get you started:",
+ "",
+ "h, left previous card",
+ "l, right next card",
+ "j, k, up, down flip card",
+ "i, / star card",
+ "0, ^, home go to the start of the deck",
+ "$, end go to the end of the deck",
+ "H, ? open this screen",
+ "e open the input file in $EDITOR",
+ "m open the control menu",
+ "",
+ "More information can be found in the man page, or",
+ "by running `lightcards --help`.",
+ "",
+ "Press [H], or [?] to go back.",
+ ]
+
+ self.win.addstr(
+ 1, 1, "LIGHTCARDS HELP", curses.color_pair(1) + curses.A_BOLD
+ )
+ self.win.hline(2, 1, curses.ACS_HLINE, 15)
+
+ for t in enumerate(text):
+ self.win.addstr(t[0] + 3, 1, t[1])
+
+ self.win.box()
+
+ def disp(self):
+ """Display help screen"""
+ (mlines, mcols) = self.outer.win.getmaxyx()
+ self.win.mvwin(int(mlines / 2) - 10, int(mcols / 2) - 26)
+ self.outer.update_panels()
+ self.panel.show()