repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
c31a9c7
parent
35082a2
author
Eric Bower
date
2024-07-19 03:33:26 +0000 UTC
fix(tui): force minimum color profile
2 files changed,  +3, -2
M go.mod
M go.mod
+1, -1
 1@@ -30,6 +30,7 @@ require (
 2 	github.com/minio/minio-go/v7 v7.0.70
 3 	github.com/mmcdole/gofeed v1.3.0
 4 	github.com/muesli/reflow v0.3.0
 5+	github.com/muesli/termenv v0.15.2
 6 	github.com/neurosnap/go-exif-remove v0.0.0-20221010134343-50d1e3c35577
 7 	github.com/picosh/pobj v0.0.0-20240709135546-27097077b26a
 8 	github.com/picosh/send v0.0.0-20240709135413-81b1dd703a11
 9@@ -114,7 +115,6 @@ require (
10 	github.com/modern-go/reflect2 v1.0.2 // indirect
11 	github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
12 	github.com/muesli/cancelreader v0.2.2 // indirect
13-	github.com/muesli/termenv v0.15.2 // indirect
14 	github.com/neurosnap/go-jpeg-image-structure v0.0.0-20221010133817-70b1c1ff679e // indirect
15 	github.com/olekukonko/tablewriter v0.0.5 // indirect
16 	github.com/philhofer/fwd v1.1.2 // indirect
M pico/ssh.go
+2, -1
 1@@ -12,6 +12,7 @@ import (
 2 	"github.com/charmbracelet/ssh"
 3 	"github.com/charmbracelet/wish"
 4 	bm "github.com/charmbracelet/wish/bubbletea"
 5+	"github.com/muesli/termenv"
 6 	"github.com/picosh/pico/db/postgres"
 7 	"github.com/picosh/pico/shared"
 8 	"github.com/picosh/pico/tui"
 9@@ -38,7 +39,7 @@ func createRouter(cfg *shared.ConfigSite, handler *UploadHandler, cliHandler *Cl
10 			scp.Middleware(handler),
11 			wishrsync.Middleware(handler),
12 			auth.Middleware(handler),
13-			wsh.PtyMdw(bm.Middleware(tui.CmsMiddleware(cfg))),
14+			wsh.PtyMdw(bm.MiddlewareWithColorProfile(tui.CmsMiddleware(cfg), termenv.ANSI256)),
15 			WishMiddleware(cliHandler),
16 			wsh.LogMiddleware(handler.GetLogger()),
17 		}