blob: be7ebfae58e0186d2b6dc1de2637a9421968d1e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
use crate::terminal::TerminalId;
/// Viewport state for a pane.
///
/// Terminal identity, cwd, labels, and agent metadata live in TerminalState.
pub struct PaneState {
pub attached_terminal_id: TerminalId,
/// Whether the user has seen this pane since its last state change to Idle.
/// False = "Done" (agent finished while user was in another workspace).
pub seen: bool,
}
impl PaneState {
pub fn new(attached_terminal_id: TerminalId) -> Self {
Self {
attached_terminal_id,
seen: true,
}
}
}
|