pico
created pr with
2.1
cmds
checkout latest patchset:
ssh pr.pico.sh print 2 | git am -3checkout any patchset in a patch request:
ssh pr.pico.sh print 2.[rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 2
Patchset
2.1
fix(tui): force minimum color profile
Eric Bower
2024-07-19T03:33:26ZSemantic diff summary
0 added,
2 modified,
0 signature changed,
0 removed
across 1 analyzed file
(1 file skipped: unsupported file type)
+1
-1
go.mod
#
| ... | ... | @@ -30,6 +30,7 @@ require ( | |
| 30 | 30 | github.com/minio/minio-go/v7 v7.0.70 | |
| 31 | 31 | github.com/mmcdole/gofeed v1.3.0 | |
| 32 | 32 | github.com/muesli/reflow v0.3.0 | |
| 33 | + | github.com/muesli/termenv v0.15.2 | |
| 33 | 34 | github.com/neurosnap/go-exif-remove v0.0.0-20221010134343-50d1e3c35577 | |
| 34 | 35 | github.com/picosh/pobj v0.0.0-20240709135546-27097077b26a | |
| 35 | 36 | github.com/picosh/send v0.0.0-20240709135413-81b1dd703a11 |
| ... | ... | @@ -114,7 +115,6 @@ require ( | |
| 114 | 115 | github.com/modern-go/reflect2 v1.0.2 // indirect | |
| 115 | 116 | github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect | |
| 116 | 117 | github.com/muesli/cancelreader v0.2.2 // indirect | |
| 117 | - | github.com/muesli/termenv v0.15.2 // indirect | |
| 118 | 118 | github.com/neurosnap/go-jpeg-image-structure v0.0.0-20221010133817-70b1c1ff679e // indirect | |
| 119 | 119 | github.com/olekukonko/tablewriter v0.0.5 // indirect | |
| 120 | 120 | github.com/philhofer/fwd v1.1.2 // indirect |
+2
-1
pico/ssh.go
#
| ... | ... | @@ -12,6 +12,7 @@ import ( | |
| 12 | 12 | "github.com/charmbracelet/ssh" | |
| 13 | 13 | "github.com/charmbracelet/wish" | |
| 14 | 14 | bm "github.com/charmbracelet/wish/bubbletea" | |
| 15 | + | "github.com/muesli/termenv" | |
| 15 | 16 | "github.com/picosh/pico/db/postgres" | |
| 16 | 17 | "github.com/picosh/pico/shared" | |
| 17 | 18 | "github.com/picosh/pico/tui" |
| ... | ... | @@ -38,7 +39,7 @@ func createRouter(cfg *shared.ConfigSite, handler *UploadHandler, cliHandler *Cl | |
| 38 | 39 | scp.Middleware(handler), | |
| 39 | 40 | wishrsync.Middleware(handler), | |
| 40 | 41 | auth.Middleware(handler), | |
| 41 | - | wsh.PtyMdw(bm.Middleware(tui.CmsMiddleware(cfg))), | |
| 42 | + | wsh.PtyMdw(bm.MiddlewareWithColorProfile(tui.CmsMiddleware(cfg), termenv.ANSI256)), | |
| 42 | 43 | WishMiddleware(cliHandler), | |
| 43 | 44 | wsh.LogMiddleware(handler.GetLogger()), | |
| 44 | 45 | } |