curses.color_pair(1) + curses.A_BOLD,
)
self.win.hline(2, 1, curses.ACS_HLINE, mcols)
+ env = os.environ.get("EDITOR", "$EDITOR")[:15]
text = [
"[y]: reset stack to original state",
"[a]: alphabetize stack",
"[u]: unstar all",
"[d]: star all",
"[s]: update stack to include starred only",
- "[e]: open the input file in $EDITOR",
- "",
+ f"[e]: open the input file in {env}" "",
"[r]: restart",
"[m]: close menu",
]
while True:
self.check_size()
key = self.win.getkey()
- if key == "q":
+ if key == self.config["quit_key"]:
self.leave()
elif key in self.config["card_prev"]:
self.obj.back()