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 <noreply@anthropic.com>
This commit is contained in:
Aaron D. Lee
2026-01-08 00:07:24 -05:00
parent 03e8e3a840
commit 3858e234da

View File

@@ -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"