Skip to main content

Module attach

Module attach 

Source
Expand description

Raw terminal lifecycle and attach-stream helpers for attach-mode clients.

Structs§

RawTerminal
A drop guard that applies raw mode to a terminal and restores the original settings when dropped.

Enums§

AttachError
Errors produced while entering or restoring raw terminal mode.

Functions§

attach_terminal
Runs the attach loop using the process stdin/stdout streams.
attach_terminal_with_initial_bytes
Runs the attach loop using process stdin/stdout and pre-read stream bytes.
attach_with_terminal
Runs the attach loop with an explicit terminal file descriptor.
drive_attach_stream
Drives raw attach-stream byte forwarding over an upgraded Unix socket.

Type Aliases§

Result
Result type for raw-terminal lifecycle operations.