1 // +build linux darwin dragonfly openbsd_amd64 freebsd
6 "github.com/zyedidia/micro/internal/shell"
7 "github.com/zyedidia/micro/pkg/shellwords"
10 const TermEmuSupported = true
12 func RunTermEmulator(h *BufPane, input string, wait bool, getOutput bool, callback string, userargs []interface{}) error {
13 args, err := shellwords.Split(input)
18 t := new(shell.Terminal)
19 t.Start(args, getOutput, wait, callback, userargs)
22 id := MainTab().Panes[0].ID()
25 MainTab().Panes[0] = NewTermPane(v.X, v.Y, v.Width, v.Height, t, id)
26 MainTab().SetActive(0)