mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-17 19:49:12 +00:00
feat: show seed fingerprint on each screen
This commit is contained in:
@@ -3,11 +3,21 @@
|
||||
import sys
|
||||
|
||||
|
||||
from termcolor import colored
|
||||
|
||||
|
||||
def clear_screen() -> None:
|
||||
"""Clear the terminal screen using an ANSI escape code."""
|
||||
print("\033c", end="")
|
||||
|
||||
|
||||
def clear_and_print_fingerprint(fingerprint: str | None) -> None:
|
||||
"""Clear the screen and optionally display the current fingerprint."""
|
||||
clear_screen()
|
||||
if fingerprint:
|
||||
print(colored(f"Seed Profile: {fingerprint}", "green"))
|
||||
|
||||
|
||||
def pause(message: str = "Press Enter to continue...") -> None:
|
||||
"""Wait for the user to press Enter before proceeding."""
|
||||
if not sys.stdin or not sys.stdin.isatty():
|
||||
|
Reference in New Issue
Block a user