From 7742f15912ec8200fe5bd1cccaf4e862e0568f73 Mon Sep 17 00:00:00 2001 From: Seth Date: Thu, 12 Mar 2026 04:16:09 +0000 Subject: [PATCH] Add ASCII art header with side-by-side timestamp layout - Created compact 3-line ASCII art for 'piNail' on the left - Timestamp and status info displayed on the right side - Efficient use of screen space - Better visual appeal while remaining compact - Deployed and verified on Pi --- piNail2/tty_status_display.py | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/piNail2/tty_status_display.py b/piNail2/tty_status_display.py index 20b6527..7931fbb 100644 --- a/piNail2/tty_status_display.py +++ b/piNail2/tty_status_display.py @@ -228,20 +228,32 @@ class StatusDisplay: """Draw the complete status display frame.""" lines = [] - # ASCII Art Title (ultra-compact) - lines.append("") - lines.append("{}{}{}".format(Colors.BRIGHT_CYAN + Colors.BOLD, - ">> PINAIL STATUS <<", Colors.RESET)) - - # Timestamp + # ASCII Art Title with timestamp side-by-side timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S") lines.append("") - lines.append("{}{} {}{}".format( + lines.append("{}{}{:<20} {}{}{}".format( + Colors.BRIGHT_CYAN + Colors.BOLD, + " ___ _ _ _ _", + "", Colors.DIM, timestamp, - Colors.RESET, - "" + Colors.RESET )) + lines.append("{}{}{:<20} {}{}{}".format( + Colors.BRIGHT_CYAN + Colors.BOLD, + "| \\| | __ _ _ _| | ||_|", + "", + Colors.DIM, + "piNail2 Status", + Colors.RESET + )) + lines.append("{}{}{:<20}{}".format( + Colors.BRIGHT_CYAN + Colors.BOLD, + "|__/|_|__|||_||_||_|\\__/", + "", + Colors.RESET + )) + lines.append("") # Get data safely