Backend implementations and contracts for terminal access.
InMemoryTerminalBackendAn in-memory backend for deterministic tests (captures stdout/stderr).ITerminalBackendDefines the platform-specific backend used by Terminal and TerminalInstance.Includes real and in-memory backends used for runtime integration and deterministic testing.