Almost done terminal emulator

This commit is contained in:
Zachary Yedidia
2019-01-11 14:49:22 -05:00
parent 4146730aaf
commit 0f1483dc8c
10 changed files with 231 additions and 132 deletions

View File

@@ -111,6 +111,14 @@ func NewBufHandler(buf *buffer.Buffer, win display.Window) *BufHandler {
return h
}
func (h *BufHandler) ID() uint64 {
return h.splitID
}
func (h *BufHandler) Name() string {
return h.Buf.GetName()
}
// HandleEvent executes the tcell event properly
// TODO: multiple actions bound to one key
func (h *BufHandler) HandleEvent(event tcell.Event) {