+ def disp_menu(self, keygrab=True):
+ """
+ Display a menu once the end of the deck has been reached, offering
+ multiple options on how to continue.
+ """
+
+ self.win.addstr("LIGHTCARDS MENU", curses.color_pair(1) +
+ curses.A_BOLD)
+ self.win.hline(1, 0, curses.ACS_HLINE, 15)
+ self.win.addstr(2, 0, "[y]: reset stack to original state\n" +
+ "[z]: shuffle stack\n" +
+ "[f]: flip all cards in stack\n" +
+ "[t]: reverse stack order\n" +
+ "[u]: unstar all\n" +
+ "[d]: star all\n" +
+ "[s]: update stack to include starred only\n\n" +
+ "[r]: restart\n" +
+ "[q]: back")
+
+ if keygrab:
+ self.menu_grab()
+