]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/display.py
Implement progress_char config option
[lightcards.git] / lightcards / display.py
index 386058f474bdd50eb6df755aacb235c2c17cb2ac..f5f5f6c57d0d4991d40e6a457879eab5642fa895 100644 (file)
@@ -351,10 +351,11 @@ class Display:
                 - 1
             )
         ):
-            # TODO: Use the variying width unicode block characters to make a
-            # super accurate bar
             self.win.addch(
-                height + 1, i + len(progress), "ยป", curses.color_pair(1)
+                height + 1,
+                i + len(progress),
+                self.config["progress_char"],
+                curses.color_pair(1),
             )
 
     def wrap_width(self):
@@ -477,7 +478,8 @@ class Display:
                 self.disp_card()
             elif key in self.config["card_next"]:
                 if self.obj.index + 1 == len(self.stack):
-                    self.menu_obj.disp()
+                    if self.config["show_menu_at_end"]:
+                        self.menu_obj.disp()
                 else:
                     self.obj.forward(self.stack)
                     self.current_card().side = 0