Skip to main content

Module shell_handlers

Module shell_handlers 

Source
Expand description

Shell client handlers.

Two modes:

  • handle_shell_tui — interactive local mode (hyprstream no args). Connects to TuiService, renders ratatui chrome via AnsiBackend to the local terminal, and routes input through the Compositor state machine.

  • handle_tui_shell — embedded mode (hyprstream tui shell). Sends SpawnChromeShell RPC to TuiService so ShellApp runs server-side as a PaneProcess. No fork occurs in the client, avoiding the ZMQ signaler assertion that fired when forking after ZMQ initialisation.

Functions§

handle_shell_tui
Run ShellClient as a local interactive terminal using the compositor.
handle_tui_shell
Spawn ShellApp inside TuiService via SpawnChromeShell RPC.