Fix ASCII art title - use simple ASCII for terminal compatibility

This commit is contained in:
Greg Hendrickson
2026-01-27 18:42:52 +00:00
parent 19a7fcfb0e
commit 788393a46f

View File

@@ -151,19 +151,19 @@ async def run_simple_menu(process, session: TerminalSession, username: str, mode
for _ in range(top_pad): for _ in range(top_pad):
console.print() console.print()
# ASCII art title # ASCII art title - using simple ASCII for compatibility
if session.width >= 60: if session.width >= 70:
title = """ title_lines = [
███████╗██╗ ██╗███████╗██╗ ██╗ ███╗ ███╗ █████╗ ████████╗███████╗ r" ____ _ _ _ __ __ _ ",
██╔════╝██║ ██║██╔════╝██║ ██║ ████╗ ████║██╔══██╗╚══██╔══╝██╔════╝ r" / ___|| |__ ___| | | \/ | __ _| |_ ___ ",
███████╗███████║█████╗ ██║ ██║ ██╔████╔██║███████║ ██║ █████╗ r" \___ \| '_ \ / _ \ | | |\/| |/ _` | __/ _ \",
╚════██║██╔══██║██╔══╝ ██║ ██║ ██║╚██╔╝██║██╔══██║ ██║ ██╔══╝ r" ___) | | | | __/ | | | | | (_| | || __/",
███████║██║ ██║███████╗███████╗███████╗██║ ╚═╝ ██║██║ ██║ ██║ ███████╗ r" |____/|_| |_|\___|_|_|_| |_|\__,_|\__\___|",
╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚══════╝ ]
""" for line in title_lines:
console.print(Text(title, style="bold green")) console.print(Align.center(Text(line, style="bold green")))
else: else:
console.print(Align.center(Text(" SHELLMATE ♟", style="bold green"))) console.print(Align.center(Text("♟ SHELLMATE ♟", style="bold green")))
console.print(Align.center(Text("SSH into Chess Mastery", style="dim italic"))) console.print(Align.center(Text("SSH into Chess Mastery", style="dim italic")))
console.print() console.print()