From ca476a55d3fecc7928f5f13416ef13063113f227 Mon Sep 17 00:00:00 2001 From: aoife cassidy Date: Sun, 19 Jan 2025 02:36:43 +0200 Subject: [PATCH] bleh --- app/editor.go | 2 +- app/shell.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/editor.go b/app/editor.go index 4999f0f..3b021e5 100644 --- a/app/editor.go +++ b/app/editor.go @@ -59,7 +59,7 @@ func (view *Editor) Event(state *ui.State, event vaxis.Event) (processed bool) { vt.Draw(win.New(0, 16, 80, 80)) vt.Attach(state.PostEvent()) vt.Focus() - err := vt.Start(exec.Command("bash", "-i")) + err := vt.Start(exec.Command("bash", "-l")) if err != nil { panic(err) } diff --git a/app/shell.go b/app/shell.go index c80166f..52b6e6c 100644 --- a/app/shell.go +++ b/app/shell.go @@ -43,14 +43,14 @@ you're ready.`}, } func (view *Shell) Event(state *ui.State, event vaxis.Event) (processed bool) { - win := state.Window() + win := state.Window().New(0, 16, 80, 80) view.Draw(state) vt := term.New() - vt.Draw(win.New(0, 16, 80, 80)) + vt.Draw(win) vt.Attach(state.PostEvent()) vt.Focus() - err := vt.Start(exec.Command("bash", "-i")) + err := vt.Start(exec.Command("bash", "-l")) if err != nil { panic(err) } @@ -67,7 +67,7 @@ func (view *Shell) Event(state *ui.State, event vaxis.Event) (processed bool) { return case vaxis.Redraw: view.Draw(state) - vt.Draw(win.New(0, 16, 80, 80)) + vt.Draw(win) state.Render() continue }