Tuix.Input (tuix v0.1.0)

Copy Markdown View Source

Reads raw bytes from stdin in a blocking loop and sends parsed key events to the runtime as {:tuix_input, %Tuix.Event.Key{}} messages.

In {:noshell, :raw} mode, :io.get_chars/3 returns as soon as any data is available (up to the requested maximum). This is the pattern documented in OTP's terminal interface guide.

Summary

Functions

Starts a linked reader process that delivers events to parent.

Functions

start_link(parent)

Starts a linked reader process that delivers events to parent.