Merge pull request #304 from PR0M3TH3AN/codex/fix-premature-screen-wipe-during-entry-add

Improve TUI interaction timing
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2025-07-06 06:35:23 -04:00
commit 4eef5237d7
1 file changed
+2 -1
+2 -1
View File
@@ -1995,7 +1995,8 @@ class PasswordManager:
totp_list.sort(key=lambda t: t[0].lower())
print(colored("Press 'b' then Enter to return to the menu.", "cyan"))
while True:
print("\033c", end="")
# Clear screen while preserving scrollback
print("\033[2J\033[H", end="")
print(colored("Press 'b' then Enter to return to the menu.", "cyan"))
generated = [t for t in totp_list if not t[3]]
imported_list = [t for t in totp_list if t[3]]