Skip to content
Myr

Fix tcell test case

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 86d92c1 · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:src/terminal.go+4 added-2 removed
299 unmodified lines
300 eventChan chan tui.Event301 slab *util.Slab302 theme *tui.ColorTheme303 tui tui.Renderer304 ttyin *os.File305 executing *util.AtomicBool306 termSize tui.TermSize307 lastAction actionType308 lastKey string
492 unmodified lines
801 serverInputChan: make(chan []*action, 100),802 serverOutputChan: make(chan string),803 eventChan: make(chan tui.Event, 6), // (load + result + zero|one) | (focus) | (resize) | (GetChar)804 tui: renderer,805 ttyin: tui.TtyIn(),806 initFunc: func() error { return renderer.Init() },807 executing: util.NewAtomicBool(false),808 lastAction: actStart,809 lastFocus: minItem.Index()}
1927 unmodified lines
2737 cmd := t.executor.ExecCommand(command, false)2738 cmd.Env = t.environ()2739 t.executing.Set(true)2740 if !background {2739 cmd.Stdin = tui.TtyIn()2741 cmd.Stdin = t.ttyin2742 cmd.Stdout = os.Stdout2743 cmd.Stderr = os.Stderr2744 t.tui.Pause(true)2745 cmd.Run()
726 unmodified lines
3472 t.tui.Close()3473 if t.history != nil {3474 t.history.append(string(t.input))3475 }3474 t.executor.Become(tui.TtyIn(), t.environ(), command)3476 t.executor.Become(t.ttyin, t.environ(), command)3477 }3478 case actExecute, actExecuteSilent:3479 t.executeCommand(a.a, false, a.t == actExecuteSilent, false, false)3480 case actExecuteMulti:
925 unmodified lines