commit 194c7251653be0ebad9a2f1ef2eaeda6225e1a35
parent 72858da4c626be33890ba0fe762e79bacea221a0
Author: Damian Myrda <damian@prime8.dev>
Date: Tue, 7 Apr 2026 23:32:00 -0500
fix: restore colored about ASCII output
Diffstat:
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/internal/tui/about_ascii.go b/internal/tui/about_ascii.go
@@ -1,8 +1,6 @@
package tui
import (
- "log/slog"
- "os"
"path/filepath"
"strings"
@@ -32,20 +30,13 @@ func normalizeAboutASCIIWidth(width int) int {
func loadAboutASCII(width int) string {
flags := aic.DefaultFlags()
flags.Width = width
- flags.Colored = false
+ flags.Colored = true
flags.Braille = false
flags.Dither = true
flags.Threshold = 160
ascii, err := aic.Convert(filepath.Join("static", "me.jpg"), flags)
if err != nil {
- cwd, _ := os.Getwd()
- imagePath := filepath.Join("static", "me.jpg")
- if _, statErr := os.Stat(imagePath); statErr != nil {
- slog.Warn("about ascii image missing", "path", imagePath, "cwd", cwd, "error", statErr)
- } else {
- slog.Warn("about ascii conversion failed", "path", imagePath, "cwd", cwd, "error", err)
- }
return ""
}