// `/sessions/[id]/terminal` — one session's live terminal, pushed by its page's // "Open the terminal" act (`SessionActs`), which offers it only on a session // Cotton holds that is not a project's conversation. // // It was the session page's Terminal tab. The page is the session table's // conversation now, so the terminal is a screen of its own over the same pane // the Mac's Settings › Code draws (`TerminalPane`): the attach, the bytes, the // keys and the sentences it says when there is no picture ("Opening the // terminal", "No terminal for this session", "The terminal is closed", // "Catching up") are all the pane's, unchanged. import CottonKit import SwiftUI struct SessionTerminalScreen: View { let id: String /// The pane's writes (`terminal.attach`, `write`, `resize`, `detach`). let writer: ScreenWriter var body: some View { PaperScreen(title: ShellLines.line("chrome", "terminal.terminal")) { TerminalPane(sessionId: id, writer: writer) } .accessibilityIdentifier("session-terminal") } }