Skip to main content

Module reader

Module reader 

Source

Structs§

ReaderHandle
Control handle returned from spawn. Owns the join handle + the command channel; dropping the handle shuts the reader down cleanly.

Enums§

ReaderCommand
Lifecycle commands for the reader thread. Sent from the event loop whenever an external process (OAuth browser flow, /shell, etc.) needs stdin/stdout in cooked mode without our reader racing for bytes.

Functions§

spawn
Spawn a blocking OS thread that reads crossterm events and forwards them over tx. Returns a ReaderHandle for lifecycle control (Pause / Resume / Shutdown). The thread exits when: