Add clear_screen helper and integrate into menus

This commit is contained in:
thePR0M3TH3AN
2025-07-05 20:21:49 -04:00
parent 79d1a1daba
commit 5b2757830e
4 changed files with 16 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ from utils.password_prompt import (
)
from utils.memory_protection import InMemorySecret
from utils.clipboard import copy_to_clipboard
from utils.terminal_utils import clear_screen
from constants import MIN_HEALTHY_RELAYS
from constants import (
@@ -2029,7 +2030,7 @@ 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()
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]]