pub struct ShellConfig {
pub tail_backfill_lines: usize,
pub output_buffer_lines: usize,
pub scrollback_lines: Option<usize>,
pub auto_tail: bool,
}Expand description
Shell TUI configuration
Fields§
§tail_backfill_lines: usizeNumber of lines to backfill when attaching to a tail stream. Default: 5.
output_buffer_lines: usizeMaximum number of lines retained in the TUI output buffer. Default: 50000. Older lines are dropped when this limit is exceeded.
scrollback_lines: Option<usize>Alias for output_buffer_lines — configurable as scrollback_lines (v0.10.18.2).
If set, overrides output_buffer_lines. Minimum enforced: 10,000.
auto_tail: boolAutomatically tail agent output when a goal starts. Default: true.
Implementations§
Source§impl ShellConfig
impl ShellConfig
Sourcepub fn effective_scrollback(&self) -> usize
pub fn effective_scrollback(&self) -> usize
Effective scrollback buffer size: scrollback_lines if set, else output_buffer_lines.
Enforces a minimum of 10,000 lines.
Trait Implementations§
Source§impl Clone for ShellConfig
impl Clone for ShellConfig
Source§fn clone(&self) -> ShellConfig
fn clone(&self) -> ShellConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShellConfig
impl Debug for ShellConfig
Source§impl Default for ShellConfig
impl Default for ShellConfig
Source§impl<'de> Deserialize<'de> for ShellConfig
impl<'de> Deserialize<'de> for ShellConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ShellConfig
impl RefUnwindSafe for ShellConfig
impl Send for ShellConfig
impl Sync for ShellConfig
impl Unpin for ShellConfig
impl UnsafeUnpin for ShellConfig
impl UnwindSafe for ShellConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more