Skip to main content

Module interactive

Module interactive 

Source
Expand description

Interactive key handler for watch mode.

Architecture (matches Playwright’s pattern):

  • Raw mode is ONLY active during the idle wait period (between test runs)
  • Raw mode is DISABLED during test execution so output renders correctly
  • The watch loop in runner.rs owns the raw mode lifecycle

The KeyHandler spawns a background thread that polls crossterm events. Events are only read when raw mode is active (the thread polls a flag). Commands flow through an async channel to the watch loop.

Structs§

KeyHandler
Interactive key handler for watch mode.

Enums§

WatchCommand
Watch mode command from keyboard input.

Functions§

print_watch_hint
Print the interactive hint after a run (raw mode should be OFF when calling this).