Event dispatching helpers for Driver: sends events to the dispatcher and handles initial resize notification.
Summary
Functions
Parses test input data into an Event struct.
Sends an event to the dispatcher pid, using direct send in test mode.
Sends an initial resize event to the dispatcher based on current terminal size.
Queries the current terminal size and dispatches a %Event{type: :resize}.
Functions
Parses test input data into an Event struct.
Sends an event to the dispatcher pid, using direct send in test mode.
Sends an initial resize event to the dispatcher based on current terminal size.
Queries the current terminal size and dispatches a %Event{type: :resize}.
Used both for the initial size notification at Driver startup and for subsequent SIGWINCH-driven window resizes.