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

@@ -166,9 +166,8 @@ func (v *View) ToggleStatusLine() {
// StartTerminal execs a command in this view
func (v *View) StartTerminal(execCmd []string, wait bool, getOutput bool, luaCallback string) error {
err := v.term.Start(execCmd, v)
err := v.term.Start(execCmd, v, getOutput)
v.term.wait = wait
v.term.getOutput = getOutput
v.term.callback = luaCallback
if err == nil {
v.term.Resize(v.Width, v.Height)