Documentation
¶
Overview ¶
Package events implements functions dealing with channels of tcell.Event.
Index ¶
- func ContextWith(ctx context.Context, events chan<- tcell.Event) context.Context
- func FromContext(ctx context.Context) chan<- tcell.Event
- func Post(ctx context.Context, newEvent func() tcell.Event) (done bool)
- func PostEvent(ctx context.Context, ev tcell.Event) (done bool)
- func PostFunc(ctx context.Context, fn func()) (done bool)
- func PostFuncTicker(ctx context.Context, fn func(), d time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWith ¶ added in v0.6.0
ContextWith returns a context.Context with the events channel.
func FromContext ¶ added in v0.6.0
FromContext returns the events channel from ctx.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.