Skip to main content

Module backend

Module backend 

Source
Expand description

Backend trait and the UI-facing facade.

See §6 of terminal_crate_plan.md for the full design.

Modules§

local
Local PTY backend, spawning the user’s $SHELL via portable-pty.
mock
MockBackend for tests. Replays scripted byte streams back to the UI and records bytes the widget sent. Used by tests/ssh_mock.rs and the ANSI handler tests.
ssh
SSH backend using russh. See §7 of terminal_crate_plan.md.

Structs§

BackendHandle
UI-facing facade for a backend session.

Enums§

BackendEvent
Event flowing from the runtime task to the UI.
CloseReason
Reason a backend session ended.
TerminalStatus
Connection status for a backend, mirrored into the elegance pane header.

Traits§

TerminalBackend
A bidirectional byte stream tied to a remote or local shell, plus the orthogonal control operations a tty needs.