diff options
Diffstat (limited to 'src/terminal/state.rs')
| -rw-r--r-- | src/terminal/state.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/terminal/state.rs b/src/terminal/state.rs index d713118c..f061e318 100644 --- a/src/terminal/state.rs +++ b/src/terminal/state.rs @@ -72,6 +72,7 @@ pub struct TerminalState { pub state: AgentState, pub revision: u64, pub launch_argv: Option<Vec<String>>, + pub respawn_shell_on_exit: bool, } impl TerminalState { @@ -96,6 +97,7 @@ impl TerminalState { state: AgentState::Unknown, revision: 0, launch_argv: None, + respawn_shell_on_exit: false, } } @@ -104,6 +106,11 @@ impl TerminalState { self } + pub fn with_respawn_shell_on_exit(mut self) -> Self { + self.respawn_shell_on_exit = true; + self + } + #[cfg(test)] pub fn set_detected_state( &mut self, |
