From fc0bc8832a073500daf8919b73166f62f1d889b7 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sat, 5 Jul 2025 22:48:19 -0400 Subject: [PATCH] Remove pause and preserve output --- src/password_manager/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/password_manager/manager.py b/src/password_manager/manager.py index e969f63..77d7954 100644 --- a/src/password_manager/manager.py +++ b/src/password_manager/manager.py @@ -1982,7 +1982,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]]