package widget import "fmt" // import . "gitlab.com/beoran/ebsgo/zori/types" // import _ "gitlab.com/beoran/ebsgo/zori/backend" // import "gitlab.com/beoran/ebsgo/zori/state" // import "gitlab.com/beoran/ebsgo/zori/style" import "gitlab.com/beoran/ebsgo/zori/event" type Console struct { Basic Lines []string Input string Cursor int } func (cw * Console) Dispatch(ev event.Event) event.Result { return event.Dispatch(ev, cw) } func (cw *Console) KeyChar(kc event.KeyChar) event.Result { cw.Basic.KeyChar(kc) fmt.Println("KeyChar of ConsoleWidget") return event.Result(true) }