Skip to main content

Module terminal

Module terminal 

Source
Expand description

Terminal control and job control for interactive mode.

Handles process group management, terminal ownership, and foreground wait with WUNTRACED support for Ctrl-Z (SIGTSTP).

All functionality is #[cfg(unix)] — non-Unix platforms get stubs.

Signal disposition (sigaction) requires unsafe per POSIX. This is the only module in kaish that uses unsafe code, and it’s limited to well-understood signal-handling patterns that every shell must perform.

Structs§

TerminalState
Terminal state for interactive job control.

Enums§

WaitResult
Result of waiting for a foreground process.