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:
@@ -857,9 +857,10 @@ def info(ctx, full):
|
|||||||
# Channel
|
# Channel
|
||||||
if channel_fingerprint:
|
if channel_fingerprint:
|
||||||
masked = f"{channel_fingerprint[:4]}••••••••{channel_fingerprint[-4:]}"
|
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:
|
else:
|
||||||
click.echo(" Channel: \033[33mpublic\033[0m")
|
click.echo(f" Channel: {click.style('public', fg='yellow')}", color=True)
|
||||||
|
|
||||||
# DCT
|
# DCT
|
||||||
dct_status = "\033[32m✓ enabled\033[0m" if has_dct else "\033[31m✗ disabled\033[0m"
|
dct_status = "\033[32m✓ enabled\033[0m" if has_dct else "\033[31m✗ disabled\033[0m"
|
||||||
|
|||||||
Reference in New Issue
Block a user