View definition

func PollRawEvent

Defined in github.com/nsf/termbox-go/api.go

Description

Wait for an event and return it. This is a blocking function call. Instead of EventKey and EventMouse it returns EventRaw events. Raw event is written into `data` slice and Event's N field is set to the amount of bytes written. The minimum required length of the 'data' slice is 1. This requirement may vary on different platforms.

NOTE: This API is experimental and may change in future.