Expose emulator functions and support output

Ref #979
This commit is contained in:
Zachary Yedidia
2018-01-20 23:34:16 -05:00
parent 0a7e4c8f06
commit 10b8fb7b26
7 changed files with 30 additions and 14 deletions

View File

@@ -8,11 +8,11 @@ import (
const TermEmuSupported = true
func RunTermEmulator(input string, wait bool, getOutput bool) error {
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, false, "")
err = CurView().StartTerminal(args, wait, getOutput, callback)
return err
}