blob: 9a733c29bc53cf363130d078a43f20cc4f6b487e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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,
/// Whether unmodified right-click gestures should be forwarded to the pane application.
pub right_click_passthrough: bool,
}
impl PaneState {
pub fn new(attached_terminal_id: TerminalId) -> Self {
Self {
attached_terminal_id,
seen: true,
right_click_passthrough: false,
}
}
}
|