Improve shell commands

This commit is contained in:
Zachary Yedidia
2018-01-22 17:20:03 -05:00
parent 4f41881c10
commit 0a49ea0a0d
3 changed files with 5 additions and 8 deletions

View File

@@ -0,0 +1,18 @@
// +build linux darwin dragonfly openbsd freebsd
package main
import (
"github.com/zyedidia/micro/cmd/micro/shellwords"
)
const TermEmuSupported = true
func RunTermEmulator(input string, wait bool, getOutput bool, callback string) error {
args, err := shellwords.Split(input)
if err != nil {
return err
}
err = CurView().StartTerminal(args, wait, getOutput, callback)
return err
}