Expand description
SSH process management and output handling
Handles:
- Spawning SSH subprocess with proper I/O configuration
- Reading and buffering SSH output
- Applying syntax highlighting to output chunks
- Managing non-interactive SSH commands
§Process Flow
- Detect if command is interactive or non-interactive
- Spawn SSH process with appropriate stdio configuration
- For interactive: read output in chunks, apply highlighting, display
- For non-interactive: passthrough directly without processing
Functions§
- process_
handler - Main process handler for SSH subprocess
- spawn_
ssh - Spawns an SSH process with the provided arguments.