driver_other.go 255 B

1234567891011
  1. //go:build !windows
  2. // +build !windows
  3. package input
  4. // ReadEvents reads input events from the terminal.
  5. //
  6. // It reads the events available in the input buffer and returns them.
  7. func (d *Driver) ReadEvents() ([]Event, error) {
  8. return d.readEvents()
  9. }