Ask the terminal before using Kitty graphics; no fontconfig-based sextants on macOS

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019reK4DUGYqDUjniWYJvwUW
This commit is contained in:
2026-10-21 11:08:36 +02:00
co-authored by Claude Opus 5.5
parent 705d795e6d
commit 2aa28c7e18
9 changed files with 140 additions and 6 deletions
+9
View File
@@ -117,6 +117,12 @@ func New(cfg *config.Config) *App {
}
blocks, graphics := resolveCovers(cfg.UI.CoverStyle, os.Getenv)
coverNote := "Posters: " + blocks.name + " block characters"
if graphics {
coverNote = "Posters: real images (the terminal confirmed the Kitty graphics protocol)"
} else if cfg.UI.CoverStyle == "kitty" || kittyTerminal(os.Getenv) {
coverNote += " (the terminal did not confirm the Kitty graphics protocol)"
}
a.coverStyle = blocks
if graphics {
a.gfx = a.newGraphics()
@@ -127,6 +133,9 @@ func New(cfg *config.Config) *App {
sonarrClient := sonarr.NewClient(cfg.Sonarr.URL, cfg.Sonarr.APIKey)
a.radarr, a.sonarr = radarrClient, sonarrClient
a.logs = newLogView(a)
if a.covers {
a.logs.add(levelInfo, coverNote)
}
sabClient := sabnzbd.NewClient(cfg.SABnzbd.URL, cfg.SABnzbd.APIKey)
a.sab = sabClient
a.probes = []probe{