Documentation
¶
Overview ¶
Package main provides the htmux CLI.
Package main provides the htmux CLI — Helix Terminal Multiplexer.
htmux is a thin gRPC client for the cluster SessionService. It is NOT a long-lived network server: each invocation dials the session service, performs one operation, prints a concrete result to stdout, and exits.
Package main provides the htmux CLI.
wsstream.go — HXC-1105: raw-mode terminal client streaming session I/O over WebSocket envelopes.
This file adds the WebSocket streaming layer to htmux:
- Dial the helix-session /stream endpoint via a wsDialFunc seam.
- Decode Output envelopes from the server and write the payload to the local terminal's stdout.
- Read local keypresses and encode them as Input envelopes sent to the server.
- Forward SIGWINCH as Resize envelopes.
The wsDialFunc seam allows hermetic unit tests to inject a scripted WS server without real network I/O.
Click to show internal directories.
Click to hide internal directories.