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
+13
View File
@@ -0,0 +1,13 @@
package ui
import (
"os"
"testing"
)
// TestMain keeps the tests from asking the real terminal about graphics
// support (the probe writes to and reads from /dev/tty).
func TestMain(m *testing.M) {
kittyGraphicsSupported = func() bool { return false }
os.Exit(m.Run())
}