From 3858e234da47f6eb80a662b1c4e0288eb76a80e6 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Thu, 8 Jan 2026 00:07:24 -0500 Subject: [PATCH] Fix channel fingerprint color using Click's native style API Use click.style() with bright_yellow and color=True to ensure the channel fingerprint displays in color across different terminal environments. Co-Authored-By: Claude Opus 4.5 --- src/stegasoo/cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stegasoo/cli.py b/src/stegasoo/cli.py index f636229..1a9236d 100644 --- a/src/stegasoo/cli.py +++ b/src/stegasoo/cli.py @@ -857,9 +857,10 @@ def info(ctx, full): # Channel if channel_fingerprint: masked = f"{channel_fingerprint[:4]}••••••••{channel_fingerprint[-4:]}" - click.echo(f" Channel: \033[1;33m{masked}\033[0m") # Bold yellow/orange for private channel + colored_masked = click.style(masked, fg='bright_yellow', bold=True) + click.echo(f" Channel: {colored_masked}", color=True) else: - click.echo(" Channel: \033[33mpublic\033[0m") + click.echo(f" Channel: {click.style('public', fg='yellow')}", color=True) # DCT dct_status = "\033[32m✓ enabled\033[0m" if has_dct else "\033[31m✗ disabled\033[0m"