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 }