Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
filter
Package filter provides a byte-stream filter that detects an adjacent Ctrl+] Ctrl+] (0x1D 0x1D) sequence to trigger a detach action, while forwarding a single Ctrl+] immediately to the PTY.
|
Package filter provides a byte-stream filter that detects an adjacent Ctrl+] Ctrl+] (0x1D 0x1D) sequence to trigger a detach action, while forwarding a single Ctrl+] immediately to the PTY. |
|
initmode
Package initmode reports whether the current sbsh process should take on PID-1 responsibilities (zombie reaping, signal forwarding).
|
Package initmode reports whether the current sbsh process should take on PID-1 responsibilities (zombie reaping, signal forwarding). |
|
pidutil
Package pidutil exposes a stable per-process identifier used to detect PID reuse: after a process exits, the kernel may recycle its PID for an unrelated process, so callers that persist PIDs and later signal them must reconfirm identity before delivering the signal.
|
Package pidutil exposes a stable per-process identifier used to detect PID reuse: after a process exits, the kernel may recycle its PID for an unrelated process, so callers that persist PIDs and later signal them must reconfirm identity before delivering the signal. |
|
pkg
|
|
|
api
Package api defines the declarative document types that external library consumers use to address sbsh objects: TerminalDoc, TerminalSpec, TerminalProfileDoc, ClientDoc, ConfigurationDoc, and the request/response payloads exchanged over the JSON-RPC control channel.
|
Package api defines the declarative document types that external library consumers use to address sbsh objects: TerminalDoc, TerminalSpec, TerminalProfileDoc, ClientDoc, ConfigurationDoc, and the request/response payloads exchanged over the JSON-RPC control channel. |
|
attach
Package attach exposes an in-process façade for sbsh's interactive "sb attach" loop, so external Go programs can drive an attach session against a running terminal control socket without spawning the sb binary as a subprocess.
|
Package attach exposes an in-process façade for sbsh's interactive "sb attach" loop, so external Go programs can drive an attach session against a running terminal control socket without spawning the sb binary as a subprocess. |
|
builder
Package builder exposes library-level helpers for constructing TerminalSpec and ClientDoc values from a profile name or inline fields, without importing internal/ packages or round-tripping through YAML.
|
Package builder exposes library-level helpers for constructing TerminalSpec and ClientDoc values from a profile name or inline fields, without importing internal/ packages or round-tripping through YAML. |
|
discovery
Package discovery is the public surface for locating sbsh terminals, clients and profiles persisted under a state root.
|
Package discovery is the public surface for locating sbsh terminals, clients and profiles persisted under a state root. |
|
errors
Package errors exposes the curated set of error sentinels that external sbsh library consumers are expected to branch on with errors.Is.
|
Package errors exposes the curated set of error sentinels that external sbsh library consumers are expected to branch on with errors.Is. |
|
logging
Package logging exposes the file-backed slog.Logger setup used by the sbsh CLI so out-of-tree callers can pre-create the per-terminal log file with the same permissions the runner expects.
|
Package logging exposes the file-backed slog.Logger setup used by the sbsh CLI so out-of-tree callers can pre-create the per-terminal log file with the same permissions the runner expects. |
|
spawn
Package spawn exposes library-level helpers for launching sbsh Terminal and Client subprocesses and driving their lifecycle from external Go callers.
|
Package spawn exposes library-level helpers for launching sbsh Terminal and Client subprocesses and driving their lifecycle from external Go callers. |
|
terminal/server
Package server exposes the sbsh terminal RPC server as a reusable facade so out-of-tree binaries can serve the same wire protocol pkg/attach consumes.
|
Package server exposes the sbsh terminal RPC server as a reusable facade so out-of-tree binaries can serve the same wire protocol pkg/attach consumes. |
Click to show internal directories.
Click to hide internal directories.
