prime8dev

prime8dev
git clone https://git.prime8.dev/prime8dev.git
Log | Files | Refs | README | LICENSE

commit eb882c00cb47d1fd8fcf80ff2804b2312d88db42
parent f1e61ce83513f9f07398947ad3e67cf505c8b725
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:
Minternal/tui/about_ascii.go | 10++++++++--
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")