Skip to content

Add console capability detection and update dependencies - #2

Merged
codyconfer merged 2 commits into
mainfrom
feat/console-capabilities
Nov 6, 2026
Merged

codyconfer merged 2 commits into
mainfrom
feat/console-capabilities

Conversation

@codyconfer

Copy link
Copy Markdown
Owner

Summary

  • Add a passive console.Detect(writer) API for terminal, ANSI, Unicode, Powerline, and Nerd Font capabilities.
  • Represent unverified font coverage as unknown instead of guessing from terminal names or glyph widths; support explicit VIEWKIT_POWERLINE / VIEWKIT_NERD_FONT overrides.
  • Integrate capability detection with glyph.DetectMode: UTF-8 terminals with unknown fonts now use Unicode, while non-TTY/dumb output uses ASCII. Explicit application mode overrides still win, and the default mode when detection is not called is unchanged.
  • Document usage and behavior; test locale precedence, font overrides, redirected output, nil writers, and glyph fallbacks.
  • Update runtime dependencies (including Bubbles v1.0.0) and development tools (golangci-lint v2.15.0, govulncheck v1.9.0), then tidy both modules.

Detection limits

There is no portable, reliable terminal query for font glyph coverage. Detection never writes probes or consumes input; Powerline/Nerd Font support remains unknown until explicitly configured. Applications should render plain fallbacks unless support is confirmed.

Validation

  • make check (build, format, lint, govulncheck, all tests): passed; no vulnerabilities found.
  • go test -race -shuffle=on ./...: passed.
  • Active LSP diagnostics for changed Go files: clean.

@codyconfer
codyconfer merged commit 2ae005e into main Nov 6, 2026
4 checks passed
@codyconfer
codyconfer deleted the feat/console-capabilities branch November 6, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant