summaryrefslogtreecommitdiff
path: root/internal/client/client.go
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-02-03 16:50:53 +0200
committerKyren223 <Kyren223@proton.me>2025-02-03 16:50:53 +0200
commit008d7cd0cdfa29cea3c596b006eeef45098c352d (patch)
treedbab77db02218414031b3a95a1ddb78cb62097a9 /internal/client/client.go
parent822347c1aa9c49b5b1f18dd5913387a382a95e82 (diff)
Added background for chat to avoid relying on terminal background
Diffstat (limited to 'internal/client/client.go')
-rw-r--r--internal/client/client.go8
1 files changed, 0 insertions, 8 deletions
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