summaryrefslogtreecommitdiff
path: root/internal/client/ui/ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/client/ui/ui.go')
-rw-r--r--internal/client/ui/ui.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/client/ui/ui.go b/internal/client/ui/ui.go
index 355fbfb..a208576 100644
--- a/internal/client/ui/ui.go
+++ b/internal/client/ui/ui.go
@@ -15,10 +15,19 @@ import (
"github.com/kyren223/eko/pkg/assert"
)
+var Width int
+var Height int
+
type ModelTransition struct {
Model tea.Model
}
+func Transition(model tea.Model) tea.Cmd {
+ return func() tea.Msg {
+ return ModelTransition{Model: model}
+ }
+}
+
func AddBorderHeader(header string, headerOffset int, style lipgloss.Style, render string) string {
b := style.GetBorderStyle()
body := style.UnsetBorderTop().Render(render)