else:
star_color = curses.color_pair(1)
- progress = (
- f"[{percent}% ("
- f"{str(self.obj.index).zfill(len(str(len(self.stack))))})]"
- )
-
# Compose bar text
bar_start = "["
bar_middle = self.current_card().printStar()
curses.color_pair(1),
)
+ progress = (
+ f"[{percent}% ("
+ f"{str(self.obj.index + 1).zfill(len(str(len(self.stack))))}"
+ f"/{str(len(self.stack))})] "
+ )
+
self.win.addstr(
height + 1,
- mcols - len(progress) - 1,
+ 0,
progress,
curses.color_pair(1),
)
self.obj.index
/ (len(self.stack) - 1)
* (mcols - len(progress))
- - 2
+ - 1
)
):
# TODO: Use the variying width unicode block characters to make a
# super accurate bar
- self.win.addch(height + 1, i, "»", curses.color_pair(1))
+ self.win.addch(
+ height + 1, i + len(progress), "»", curses.color_pair(1)
+ )
def wrap_width(self):
"""Calculate the width at which the body text should wrap"""