commit b00af639b7bd3f08408367f8fe1dec0c7aac91d2
parent 0e29a71ac3e571f39e7038b4e5917c50bcc98ebb
Author: Damian Myrda <damian@prime8.dev>
Date: Wed, 21 Oct 2026 02:49:38 +0000
fix(tui): fall back to plain ascii logo when color is unavailable
Diffstat:
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/internal/tui/about_ascii.go b/internal/tui/about_ascii.go
@@ -25,9 +25,15 @@ func loadAboutASCII(width int) string {
aboutASCIIConvertMu.Lock()
defer aboutASCIIConvertMu.Unlock()
- ascii, err := aic.Convert(filepath.Join("static", "me.jpg"), flags)
+ path := filepath.Join("static", "me.jpg")
+ ascii, err := aic.Convert(path, flags)
if err != nil {
- return ""
+ // aic refuses color when the server's terminal env lacks COLORTERM;
+ // fall back to plain ascii so the logo always renders.
+ flags.Colored = false
+ if ascii, err = aic.Convert(path, flags); err != nil {
+ return ""
+ }
}
return strings.TrimRight(ascii, "\n")