From 008d7cd0cdfa29cea3c596b006eeef45098c352d Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Mon, 3 Feb 2025 16:50:53 +0200 Subject: Added background for chat to avoid relying on terminal background --- internal/client/client.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'internal/client/client.go') diff --git a/internal/client/client.go b/internal/client/client.go index 49e3c80..a779bf9 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -8,12 +8,10 @@ import ( tea "github.com/charmbracelet/bubbletea" "github.com/davecgh/go-spew/spew" - "github.com/muesli/termenv" "github.com/kyren223/eko/internal/client/config" "github.com/kyren223/eko/internal/client/ui" "github.com/kyren223/eko/internal/client/ui/auth" - "github.com/kyren223/eko/internal/client/ui/colors" "github.com/kyren223/eko/pkg/assert" ) @@ -43,12 +41,6 @@ func Run() { log.Fatalf("Config file at '%v' was unable to load successfully\n%v\n", config.ConfigFile, err) } - // HACK: Sets the terminal color and keeps it that way - // I am not aware of a way to query the current background color (to revert this) - // Ideally bubbletea will handle the setting/reventing, for now it's fine - // It only changes the current pane so new terminal panes/windows are not affected. - termenv.DefaultOutput().SetBackgroundColor(termenv.RGBColor(colors.ToHex(colors.Background))) - program := tea.NewProgram(initialModel(dump), tea.WithAltScreen()) assert.AddFlush(BubbleTeaCloser{program}) ui.Program = program -- cgit v1.3.1